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
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
what JCL Procedures?
a dd statement has 2 types of parameters. Name them?
what is use of dsn parameter in dd statement?
How do you submit a job for execution?
what is “Cond= even” and “Cond=only”?
Explain the function of the steplib dd statement?
what is use of dcb parameter in dd statement?
When output dataset space is required, what quantity categories are used?
Explain how can the attributes of one sms dataset be copied to another dataset?
what happens in execution stage in job processing?
how do you code a null statement?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
How does jcl specify the job to the operating system?