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


Please Help Members By Posting Answers For Below Questions

What is the difference between the positional and keyword parameters? Give examples.

712


What is the maximum length of a single line of jcl?

829


what are JCLLIB and STEPLIB in JCL?

678


Explain about LMFREE�free data set from its association with data ID

1006


Define concatenating?

667






What are the 4 fields in dd statement?

744


How to submit a jcl from cics?

668


What parameters can be used to limit the number of records written to a sysout dataset?

751


Can we use DISP=SHR in output file in JCL

953


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

1999


which parameter is use to declare the name of dataset in dd statement?

737


which utility is used a dummy utility?

795


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

1039


What does a disposition of (new,catlg,keep) for a dsn mean?

617


how JCL works?

796