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
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What are all the divisions of a COBOL program?
How do you differentiate between cobol and cobol-ii?
What is length is cobol?
) how do u code after getting data?
How do define dynamic array in cobol.
What the difference is between continue and next sentence?
how do you reference the variable unblock file formats from cobol programs
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
i want a program using by if, evaluate , string, unstring, perform, occurs?
Which division and paragraphs are mandatory for a COBOL program?
What is the difference between next sentence and continue in cobol programing language?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Explain how you can characterize tables in cobol?