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

We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1746


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

816


List the different jcl statements that are not permitted in the procedures?

634


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

1033


Is it possible to code instream data in a PROC?

748






Differentiate between addressing mode and run mode.

614


Does jcl support automatic restart?

759


Explain the function of the steplib dd statement?

637


What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

1579


What are some jcl statements that are not allowed in procedures?

722


Why include statement is used in a jcl?

687


How to alter the parameters for the existing gdg?

710


List in order the hierarchical levels of jcl?

664


what is “Cond= even” and “Cond=only”?

737


Explain how can an in-stream dataset be terminated?

696