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 / vinodh

IN SORT, YOU CAN USE JOINKEYS AND CAN TAKE 50 COMMON
RECORDS IN B/W 2 I/P FILES AND WRITE TO O/P FILE.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use DISP=SHR in output file in JCL

953


How can the disposition of sysout datasets be set for an entire jobstream?

840


How jcl is used for testing batch programs?

721


when can a job time-out occur? How to overcome that?

753


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7084






Explain the function of dd name parameter with a 2 part structure; audit.report?

898


What do you understand by the term job time – out and how can you overcome that?

603


Define concatenating?

667


what is use of dcb parameter in dd statement?

775


Is condition checking possible in jcl?

722


what is a jcl?

687


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

1616


What do you understand by jcl?

627


Differentiate between the joblib and the steplib statements?

857


Can I share my data with other jobs? How?

670