Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DFSORT/ICETOOL :: RE: SORT VSAM file with each field one by one into output file

$
0
0
Author: Arun Raj
Posted: Tue Mar 14, 2017 8:21 pm (GMT 5.5)

maxsubrat,

If your input VSAM data set is of fixed-length, you could use the ICETOOL RESIZE operator to achieve this, to avoid repeating code for each line.
Code:
//STEP01   EXEC PGM=ICETOOL                                 
//IN       DD DISP=SHR,DSN= (VSAM Input AvgLen/Maxlen=3616)
//TOOLMSG  DD SYSOUT=*                                     
//DFSMSG   DD SYSOUT=*                                     
//OUT      DD DISP=(,CATLG),DSN= (FB Output LRECL=90)       
//TOOLIN   DD *                                             
 RESIZE FROM(IN) TO(OUT) TOLEN(90) USING(CTL1)             
//CTL1CNTL DD *                                             
  INCLUDE COND=(1,4,SS,EQ,C'SS01,HH01,ZZ01')               
  INREC BUILD=(1,4,91:17,3600)                             
  OUTFIL OMIT=(1,1,CH,EQ,C' ')                       

_________________
Arun
----------------------------------------------------------------------------------------------------
Love is like an hourglass, with the heart filling up as the brain empties. -Jules Renard


Viewing all articles
Browse latest Browse all 8500

Trending Articles