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


Please Help Members By Posting Answers For Below Questions

how would you create a temporary dataset? And where will you use them?

768


How is a type of file defined in the jcl that executes the cobol program?

713


How jcl is used for testing batch programs?

721


Explain the purpose of the dd keylen parameter?

677


Can I share my data with other jobs? How?

670






Explain the function of //jcllib statement?

708


Which statement is used to identify the private libraries in job?

678


a dd statement has 2 types of parameters. Name them?

647


what are the various stages of job processing?

738


How to pass data to a program that is coded in an exec statement?

827


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

605


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

671


What is the maximum length of a single line of jcl?

829


How to submit a jcl from cics?

666


what is DSN in JCL and what are the parameters to declare the DSN?

718