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
how do you reference the ksds vsam file formats from cobol programs
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Write a program to enter and display the names of students in a class using the occurs clause.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
Write some characteristics of cobol as means of business language.
What are the rules of the move verb?
How can you get the ksds file records into your cobol program?
Write a program that uses move corresponding.
What is amode(24)?
Name the sections present in data division.
what are decleratives in cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.