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 are the different rules for performing sort operation?
Can a Search can be done on a table with or without Index?
Can we change the password using ALTER? anyone tried and changed?
Difference between cobol and cobol-ii?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
How you can characterize tables in cobol?
i want a program using by if, evaluate , string, unstring, perform, occurs?
how do you define single dimensional array and multidimensional array in your cobol?
Explain about different table spaces.
How do get the result of your program directly on your pc?
Explain how to differentiate call by context by comparing it to other calls?
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
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
How many bytes S(8) comp field occupy and its maximum value?