How to find a specific data in one dataset and copy the same to another dataset?

Questions by ANILSAYA

Showing Answers 1 - 3 of 3 Answers

lfrank

  • Jan 8th, 2008
 

If the data is in a specific position in the records, use the sort INCLUDE statement to select the records.

//SORTSEL EXEC PGM=SORT

//SYSOUT     DD  SYSOUT=*

//SORTIN     DD  DSN=INPUT.FILE,DISP=OLD

//SORTOUT  DD  DSN=OUTPUT.FILE,DISP=(NEW,CATLG),...

//SYSIN       DD  *

 SORT FIELDS=COPY

 INCLUDE COND=(13,2,CH,EQ,C'NH')
/*

You could also use File-AID or IBM File-Manager.


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions