2. How IEBGENER can be used for creating new datasets with specific formats
from already existing datasets ?
Use the following JCL to edit a dataset and create a new format JCL:
//ABCDEFGH JOB (xxxxxxx,020),'TEST JCL',CLASS=X,MSGCLASS=X,
// REGION=0M,NOTIFY=xxxxxxxxx
//JSTEP010 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=Input data set name, DISP=SHR
//SYSUT2 DD DSN=Output Data set name,DISP=SHR
//SYSIN DD *
GENERATE MAXFLDS=3,MAXLITS=8
RECORD FIELD=(9,1,,1),
FIELD=(8,' ',,10),FIELD=(483,17,,18)
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
Here the first field statement will take first 9 characters from input dataset and will be the
first 9 characters in the output dataset. Next field statement will put 8 blank positions in the
output dataset from 10 th position. Third field will copy 483 characters from input dataset
position 17 to output dataset position 18.
6. What is a Double Byte Character Data Set (DBCS) ? How it can be edited using
IEBGENER?
A character set in which each character is represented by a 2-byte code. Languages such
as Japanese, Chinese, and Korean, which contain more symbols that can be represented
by 256 code points, require double-byte character sets. Because each character requires 2
bytes, entering, displaying, and printing DBCS characters requires hardware and supporting
software that are DBCS capable. Contrast with single-byte character set (SBCS). A
sequence of double-byte characters must be delimited by the shift-out character (X'0E') at
the left end and by the shift-in character (X'0F') at the right end.
These DBCS character sets can be edited using IEBGENER in the similar way as that of
SBCS character sets. Only difference is that add a DBCS=YES indicator with the Generate
statement.
8. I can’t get the IEBGENER SMTP Job to send mail. Can you help me?
You should ensure that the SMTP task is correctly configured and operational at your site. If
IBM’s SMTPNOTE command doesn’t send mail, the IEBGENER examples won’t work
either.