>> I need to create a single record, from the records with "DSNAME =" and 
>> "OHSM." with the dataset name from the first one (11(44)) and the volser 
>> from the last (47(6)):
volser datasename
or
datasetname volser


Jack,

Your requirements do NOT match the input data.   For example, for DSNAME = 
record, where is the VOLSER ?

//SYSIN    DD *
  OPTION COPY
  INCLUDE COND=(02,08,CH,EQ,C'DSNAME =',OR,
                02,05,CH,EQ,C'OHSM.')

  INREC IFTHEN=(WHEN=(02,08,CH,EQ,C'DSNAME ='),
               BUILD=(11,44)),
        IFTHEN=(WHEN=(02,05,CH,EQ,C'OHSM.'),
               BUILD=(02,51))
/*


Thanks,
Kolusu
DFSORT Development
IBM Corporation



----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to