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
Suppose I have five jobs to do. But I want to hold one?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
Explain the function of a dd statement?
What is the purpose of disp parameter?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
how to do automated restart when a job abends?
Where & How Do You Code Identifier In Jcl?
A dd statement consists of 4 fields. Name them?
What is the motivation behind coding class parameter in job statement?
Why include statement is used in a jcl?
How does jcl act on a cobol code?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
How to submit a jcl from cics?
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.