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
What is a SSRANGE and NOSSRANGE?
Explain what you understand by passing by value.
how do you reference the printer file formats from cobol programs
Difference between cobol and cobol-ii?
Can you please let me know the centre name of INS certification in Kolkata.
Explain how you can characterize tables in cobol?
Mention the guidelines to write a structured cobol program?
Difference between array and sub-script ?
What are the access modes of START statement?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
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?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is the default value(s) for an initialize and what keyword allows for an override of the default?