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 / vikas pujar
1) Sortcard to merge two files will be
//Sysin dd *
Sort fields=copy
/*
2) When try two merge two files using sort, first thing to see is they are of same length. If they are not, change the length of one equal to other in one more step which come prior to sort step.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of dd?
In sms datasets, what is the function of the dd mgmtclas keyword?
Is their any limit for data sets?
what is use of disp parameter in dd statement?
is there any way to execute more than one proc in the same exec statement at the same time..?
what are JCLLIB and STEPLIB in JCL?
How is a type of file defined in the jcl that executes the cobol program?
What do you know about jcl?
What is catelog procedure and how many catelog procedure to use in one job?
Suppose I have five jobs to do. But I want to hold one?
which utility is used a dummy utility?
What is jcl in mainframe?
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
How does jcl act on a cobol code?
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) ?