I have two input SORTIN files and We need to create one
SORTOUT file which contains data of both input files. What
is the SortCard for this?. Suppose the length of the both
files are different, then How we do it? Please reply ASAP
Answer Posted / srk
//jobname job .......
//stepname1 exec pgm=sort
//sysprint dd sysout=*
//sortin01 dd dsn=file1,disp=shr
//sortin02 dd dsn=file2,disp=shr
//sortout dd dsn=mergefile,.......
//sysout dd sysout=*
//sysin dd *
merge fields=(starting field,length,merge-sequence,format)
/*
*above is the merge condition
//
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How can a stopped job be started again?
what is DD statement is used in JCL?
Where can program checkpoints be stored for use in a restart?
What is the purpose of disp parameter?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
what is the difference between JES3 and JES2?
Explain the purpose of the dd keylen parameter?
Explain the purpose of dd dummy statement?
List in order the hierarchical levels of jcl?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
can any one plzzzzzz tell the jcl code for creating ps using idcams
What is the format of comment statement?
What is the significance of addrspc parameter in exec statement?
Which dd parameters are required?
What does a disposition of (MOD,DELETE,DELETE) mean ?