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?
Answer Posted / 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 |
Post New Answer View All Answers
In sms datasets, what is the function of the dd avgrec keyword?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
What is the format of comment statement?
Why block size is multiple of lrecl in jcl?
How does the jcl specify the job to os?
How to override loadlib?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
Is it possible to left uncode disp?
Suppose I have five jobs to do. But I want to hold one?
How do you submit a job for execution?
How can values be passed from the job stream to an executable program?
Is their any limit for data sets?
which utility is used a dummy utility?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
What is the function of the dd dcb keyword?