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


Please Help Members By Posting Answers For Below Questions

How can you get the ksds file records into your cobol program?

644


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.

1703


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?

702


Differentiate between structured cobol programming and object-oriented cobol programming.

669


how to convert the recors form vsam file to db2 table tru file aid

2763






Can a Search can be done on a table with or without Index?

806


what is the use of outrecord?

1774


What is inspect in cobol ?

806


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

681


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.

5695


what is the difference between COBOL2 AND COBOL390?

2455


Describe the cobol database components?

682


) how do u code after getting data?

1582


What are the rules of the move verb?

708


What is the difference between comp and comp-3 usage?

681