Hi Kolusu, I must not have explained myself right. The dataset name starts on position 11 of the record with "DSNAME =" beginning on position 2 (the file has a recfm FBA); the volser starts on position 47 of the record with "OHSM." beginning on position 2; all the other records are irrelevant. So, what I need is to get the dataset name from the record that has "DSNAME =", the volser from the record that has "ODSN:" and format a single record with volser datasetname or datasetname volser
Best wishes Jack On Thu, 24 Nov 2022 at 14:38, Sri h Kolusu <[email protected]> wrote: > >> 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 > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
