How do you define a sort file in JCL that runs the COBOL
program?
Answer Posted / rik
YOU HAVE TO SIMPLY WRITE THE FOLLOWING CODE IN YOUR JCL :
//STEP1 EXEC PGM=SUPERSRT
//SORTIN DD DSN=TEST001.INFILE,DISP=SHR
//SORTOUT DD DSN=TEST001.SORTED,DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),
// UNIT=WORK,SPACE=(TRK,5,2),RLSE)
//SYSIN DD *
SORT FIELDS=(16,05,ZD,A)
/*
THE CONTAINT OF THE TEST001.INFILE WILL BE COPPIED TO
TEST001.SORTED FILE AND THIS TEST001.SORTED FILE WILL BE
SORTED IN ASCENDING ORDER OF THE CONTAINT OF FIELD POSITION
16 TO 20..
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
How do define dynamic array in cobol.
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What is the local-storage section?
how do you reference the ksds vsam file formats from cobol programs
What are the different rules for performing sort operation?
What is the difference between external and global variables in COBOL?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is the difference between binary search and sequential search?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Name some of the examples of COBOl 11?
Why did you choose to work with ibm mainframe cobol programming?
Explain how to differentiate call by context by comparing it to other calls?
What is the difference between comp and comp-3?