How do you define a sort file in JCL that runs the COBOL
program?
Answer Posted / nk
//STEP1 EXEC PGM=MYSORTPGM
//INFILE DD DSN=MY.UNSORTED.FILE,DISP=SHR
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(100,20))
//SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,(100,20))
//OUTFILE DD DSN=MY.SORTED.FILE,
// DISP=(,CATLG,DELETE),
// UNIT=TEST,SPACE=(CYL,(100,10),RLSE),
// DCB=(DSCB.FB,LRECL=500)
SELECT SORTWK01-FILE ASSIGN TO SORTWK01.
SD SORTWK01-FILE
etc.
| Is This Answer Correct ? | 15 Yes | 11 No |
Post New Answer View All Answers
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
how to move the records from file to array table. give with code example
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What are all the divisions of a COBOL program?
What rules are followed by the search verb.
What are 77 levels used for?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What are the access modes of START statement?
What is the difference between PIC 9.99 and PIC9v99?
how do you reference the variable unblock file formats from cobol programs
What is Pic 9v99 Indicates in COBOL?
What is the difference between next sentence and continue in cobol programing language?
how do you define single dimensional array and multidimensional array in your cobol?
What are the pertinent COBOL