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?

Answers were Sorted based on User's Feedback



There are two input sorting files and there is a need to create one sort out file which contains ..

Answer / sreenidhi p r

sort card will be
SORT FIELDS=COPY

Is This Answer Correct ?    5 Yes 2 No

There are two input sorting files and there is a need to create one sort out file which contains ..

Answer / 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

There are two input sorting files and there is a need to create one sort out file which contains ..

Answer / dineshj

There is a way to give two input files in dfsort. coding is
here.,
//iksa01 job .....
//stp1 exec pgm=sort
//sortin dd dsn=iksa01.dfsort.input1,disp=shr
// dd dsn=iksa01.dfsort.input2,disp=shr
//sortout dd dsn=iksa01.dfsort.output1,disp=shr
//sysout dd sysout=*
//sysin dd *
/*
//

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More JCL Interview Questions

We have an output dataset in job with disp parameter as SHR. Can we write data in that file dataset?

2 Answers   CTS, IBM,


i have 3 steps in my jcl, where i want to run only one step at a time depending on the variable. How should i give the condition statement... I have tried this with two steps which is working but not able to add condn for the 3rd step. can anyone help me... I want to know the cond stmt which i can code in step 3 and step4, so that only either step2 or step3 or step4 executes

3 Answers  


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

0 Answers  


How to get the last but one duplicate record of the file using Sort?

2 Answers   Fidelity,


How many instream we can write in single jcl?

1 Answers  






after submiting the jcl.how do you know that the job has been completed.

4 Answers   ACS,


Can we browse or edit the GDG dataset if it is a tape entry?

4 Answers  


What does the one advantange of using IEBUPDTE?????

2 Answers  


i have a base gdg consisting of 12 versions like jan to dec. i need to concatante this gdg to another gdg which have version 1 or to the base gdg itself can anyone give me the code pls ?

4 Answers   IBM,


What does IEBGENER do?

10 Answers   BirlaSoft,


How do you send the output of a COBOL program to a member of a PDS?

7 Answers  


How do you submit JCL via a Cobol program?

4 Answers   IBM,


Categories