How I sort the records in a file and copy the first 10
records to another file
Answer Posted / balasukumar
//SORTIN DD DSN=INF1
//SORTOT DD DSN=OTF
//SYSIN DD *
SORT FIELDS = COPY
SKIP=0
STOPAFT=10
/*
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is notcat 2 - gs?
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
What parameter of the job statement is used to limit the cpu time consumed by the job?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
Describe the various parameters utilized in the creation of a gdg?
which parameter is use to declare the name of dataset in dd statement?
Is it possible to code instream data in a PROC?
What is jcl in mainframe?
What is the function of the dd dcb keyword?
Must tape dataset definitions include vol=ser specifications?
How to run cobol program using jcl?
Explain about LMFREE�free data set from its association with data ID
Matching Logic in Jcl not in cobol.Could any one please answer this question