Page 1 of 1

Reformatting Of Field.

PostPosted: Wed Jul 28, 2010 1:09 pm
by Vineet
Hi All,

I am having 1 Input File, There is a Record having value as 00010.0000. My Requirement is I want this field to be Reformatted to 0000010.00. I want to perform this activity using SORT not with COBOL Pgm. please Advise.

00010.0000 = 0000010.00
00010.9900 = 0000010.99

Thanks

Re: Reformatting Of Field.

PostPosted: Thu Jul 29, 2010 12:54 am
by arcvns
This is untested, but I believe the below Syncsort job would work for you.
//STEP1   EXEC PGM=SORT
//SORTIN DD *
00010.0000
00010.9900
//SYSOUT    DD SYSOUT=*
//SORTOUT   DD SYSOUT=*
//SYSIN     DD *
  OPTION COPY
  INREC BUILD=(1,8,UFF,EDIT=(TTTTTTT.TT))

Re: Reformatting Of Field.

PostPosted: Fri Jul 30, 2010 1:26 am
by Alissa Margulies
Arun - yes, that will produce the requested output.

Re: Reformatting Of Field.

PostPosted: Mon Aug 02, 2010 1:04 pm
by arcvns
Hi Alissa,

Thanks for the follow up. :)