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
i want to store 20 digits . how will u do it in cobol ?
How to pass data to a program that is coded in an exec statement?
how to compare two datasets without using superce because output is limited to 133 bytes
How does jcl specify the job to the operating system?
How to do automated restart when a job abend?
What are the jcl procedures?
What is NOTCAT ?
How gdg are concatenated?
What are the difference between jcl and jes?
Suppose I have five jobs to do. But I want to hold one?
Can I send output of job to my remote device careerride123?
What are the 2 types of parameters in dd statement?
List the various advantages of using jcl language?
How do you create a temporary dataset?
How to execute 2nd and 4th steps among 5 steps in jcl proc?