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 do you understand by the term job time – out and how can you overcome that?
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
In job processing, what happens in execution stage?
What are steplib and joblib?
Name what parameter directs the output of the job log dataset?
what is use of disp parameter in dd statement?
What is catelog procedure and how many catelog procedure to use in one job?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
How can values be passed from the job stream to an executable program?
what is “Cond= even” and “Cond=only”?
What do you know about jcl?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
what is the use of JCL?
a dd statement has 2 types of parameters. Name them?
What is the difference between run mode and addressing mode?