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 can you get the ksds file records into your cobol program?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Differentiate between structured cobol programming and object-oriented cobol programming.
how to convert the recors form vsam file to db2 table tru file aid
Can a Search can be done on a table with or without Index?
what is the use of outrecord?
What is inspect in cobol ?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
what is the difference between COBOL2 AND COBOL390?
Describe the cobol database components?
) how do u code after getting data?
What are the rules of the move verb?
What is the difference between comp and comp-3 usage?