i have 10,000 records in one input file.i want to sort 1 to
5000 records in one outputfile and remaining records sort in
another output file write the syntax for this?
Answer Posted / albert
SORT FIELDS=COPY
OUTFIL FILES=1,STOPAFT=5000
OUTFIL FILES=2,SKIPREC=5000
| Is This Answer Correct ? | 28 Yes | 8 No |
Post New Answer View All Answers
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
How to submit jcl through a cobol program?
How to pass data to a program that is coded in an exec statement?
Explain the function of a dd statement?
what is use of space parameter in dd statement?
What is the function of dd disp parameter?
What is the syntax of JCL statement?
How does the jcl specify the job to os?
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) ?
Explain the job statement in jcl?
What is one line to pass PARM from JCL to COBOL?
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.
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
define cond parameter in jcl?