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

What does the statements: typrun=scan and typrun=hold do in a JCL statement

2 Answers  


Is automatic restart possible in jcl?

0 Answers  


What is catelog procedure and how many catelog procedure to use in one job?

2 Answers   Infosys,


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

0 Answers  


How to execute 2nd and 4th steps among 5 steps in jcl proc?

0 Answers  






Explain dfsort utility?

0 Answers  


can we give instream data in procedure

6 Answers   EDS,


What are steplib and joblib? What for they are used?

0 Answers  


Explain about Cobol Subroutines

1 Answers  


Explain the hierarchy levels in jcl?

0 Answers  


i have a jcl calling proc which has 10 steps, i want to execute from step5 to step10, where can i code RESTART and COND parameter?

6 Answers   IBM,


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?

3 Answers  


Categories