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 difference between a PDS member and a GDG Generation ? Is it only this, that with a generation we can use +1, 0, -1 etc while with PDS member we can not ?
how to do automated restart when a job abends?
A dd statement consists of 4 fields. Name them?
what is DSN in JCL and what are the parameters to declare the DSN?
What is the meaning of keyword in JCL? What is its opposite?
Can we browse or edit the GDG dataset if it is a tape entry?
what do you mean by include statement in jcl?
how to set dependancy for jobs?
what is A-MODE and R-MODE?
What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?
what is symbolic parameters in jcl, what is a temparary data set ? where do u use ?
What is COND=EVEN ?