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 is search and searchall?what is the diffrence between them?give an best example?
What is the LINKAGE SECTION used in COBOL?
Name the divisions, which are available in a cobol program?
What are the different rules to perform a Search?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
When is inspect verb is used in cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Write a program to explain size error.
What is an in line perform? When would you use it? Anything else you wish to say about it.
Can we change the password using ALTER? anyone tried and changed?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Write down the divisions of cobol program?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What are the pertinent COBOL commands?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.