2. I am giving here only sysin code so that you can get
quick refresh:
Y4T = YYYYMMDD
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC BUILD=(1,8,Y4T,TOJUL=Y4T)
/*
We converted to Julian date YYYYDDD
2
5. // SET INPVAR1='BBDY1'
// SET INPVAR2='BBJOB'
the following DFSORT symbols would be built in
SYMNAMES:
the INCLUDE statement would be transformed to:
INCLUDE
COND=(8,5,CH,EQ,C'BBDY1',OR,8,5,CH,EQ,C'BBJOB'
)
5
6. //SYSIN DD *
OPTION COPY
OUTFIL FNAMES=OUT1,INCLUDE=(1,4,CH,EQ,C'1010'),ACCEPT=100
OUTFIL FNAMES=OUT2,INCLUDE=(1,4,CH,EQ,C'1020'),ACCEPT=100
OUTFIL FNAMES=OUT3,INCLUDE=(1,4,CH,EQ,C'1030'),ACCEPT=100
OUTFIL FNAMES=OUT4,INCLUDE=(1,4,CH,EQ,C'1040'),ACCEPT=100
/*
This trick we use to split input record into 4
outfiles.
6
18. These will be used for report generation purpose.
Some shops use SORT, and others use Easytrieve.
Just go through reference section. These are
commonly asked questions in Interviews.
18