Page 1 of 1

Truncate the lst colums

PostPosted: Mon Nov 16, 2009 7:32 pm
by samb01
I've a dataset VB 290 (LRECL) ==> IN

and I want a dataset with VB 255 (LRECL) ==> OUT

Is it possible to truncate the last 35 columns of then first dataset?

Re: Truncate the lst colums

PostPosted: Mon Nov 16, 2009 11:42 pm
by Frank Yaeger
You can use a DFSORT job like the following to do what you asked for:

//S1    EXEC  PGM=SORT
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (VB/290)
//SORTOUT DD LRECL=255,DSN=...  output file (VB/255)
//SYSIN    DD    *
  OPTION COPY,VLLONG
/*

Re: Truncate the lst colums

PostPosted: Tue Nov 17, 2009 5:08 pm
by samb01
Thanks !

Is Works !