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

I am having one step in my jcl.in that step,i am calling one proc.In that proc,i have 10 steps.i want to call a particular step in that proc without writing any new jcl ike iebedit utility...

2 Answers   Satyam,


when GDG version number get changed ? bcz always Generations only increasing.

1 Answers   Cap Gemini,


How can return codes be tested before execution of a job step?

0 Answers  


How does jcl specify the job to the operating system?

0 Answers  


How to print the Output to SPOOL using MSGCLASS and SYSOUT ?

4 Answers   IBM,






Given a input file with duplicates how to remove the duplicate records from the file using JCL?

6 Answers   CDS, Convergys, TCS,


Is there a limit of 3273 DD statements for a JCL or for every EXEC step in a JCL?

2 Answers  


How to submit jcl through a cobol program?

0 Answers  


Suppose your program is reading a Sequential Vsam file. The file contains 10 records. How will you code the JCL to read only 2nd, 5th, 7th,and 10th record?

1 Answers   Thomson,


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

0 Answers  


how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data from mainprogram but i need it from JCL directly

5 Answers   IBM, TCS,


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

0 Answers  


Categories