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
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 |
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 |
What is the purpose of dd dummy statement?
Explain the function of dd name parameter with a 2 part structure; audit.report?
What does a disposition of (new,catlg,keep) for a dsn mean?
What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?
what is the meaning of 'sysin dd dummy'
what is instream data
How to find in aparticular step how many versions a paricular gdg base have?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
How can the disposition of sysout datasets be set for an entire jobstream?
how can u identify the db2 from jcl ?
In Job, there are 10 steps. If I want to execute the first 6 steps and don't want to execute from 7th to 10th step. What is the solution for this ?
suppose i have job it contains 10 steps after exicution of job failuer at 3 and 7 th steps i want exicute step 3 and step 7 only how we specify condition ?