oza017.myorg.emp has 100 records ,oza018.myorg.staff has
200 records but 50 are the common records in both files
copy all the common records into oza017.myorg.xyz dataset
Answer Posted / mariopuzo
//step01 exec pgm=sort
//sysin01 dd=input1,disp=shr
// dd=input2,disp=shr
//sysout dd=output1,disp=(new,catlg,del)
//sysin dd *
Sum fields=none
/*
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how would you create a temporary dataset? And where will you use them?
How is a type of file defined in the jcl that executes the cobol program?
How jcl is used for testing batch programs?
Explain the purpose of the dd keylen parameter?
Can I share my data with other jobs? How?
Explain the function of //jcllib statement?
Which statement is used to identify the private libraries in job?
a dd statement has 2 types of parameters. Name them?
what are the various stages of job processing?
How to pass data to a program that is coded in an exec statement?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
What is the maximum length of a single line of jcl?
How to submit a jcl from cics?
what is DSN in JCL and what are the parameters to declare the DSN?