There are two input sorting files and there is a need to
create one sort out file which contains data of both input
files. What is the sort card for this. Write a sample JCL
for this using a control card?
Answer Posted / y@$w@nth
We can go for concatenation of datasets approach for this
to do
//userid01 job .....
//stp1 exec pgm=sort
//sortin dd dsn=userid01.test.input1,disp=shr
// dd dsn=userid01.test.input2,disp=shr
//sortout dd dsn=userid01.test.input,disp=shr
//sysout dd sysout=*
//sysin dd *
sort fields=copy
/*
//
In the above case the statement
sortin dd dsn=userid01.test.input1,disp=shr
// dd dsn=userid01.test.input2,disp=shr
means concatenation of two datasets as one.....
Let me know if i am wrong
yaswanth.pyrs@gmail.com
Cheers..
Y@$w@nth..
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between the positional and keyword parameters? Give examples.
What is the maximum length of a single line of jcl?
what are JCLLIB and STEPLIB in JCL?
Explain about LMFREE�free data set from its association with data ID
Define concatenating?
What are the 4 fields in dd statement?
How to submit a jcl from cics?
What parameters can be used to limit the number of records written to a sysout dataset?
Can we use DISP=SHR in output file in JCL
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
which parameter is use to declare the name of dataset in dd statement?
which utility is used a dummy utility?
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
What does a disposition of (new,catlg,keep) for a dsn mean?
how JCL works?