Reformatting Of Field.



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

Reformatting Of Field.

Postby Vineet » Wed Jul 28, 2010 1:09 pm

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
Vineet
 
Posts: 86
Joined: Tue Jun 19, 2007 11:38 am
Has thanked: 0 time
Been thanked: 0 time

Re: Reformatting Of Field.

Postby arcvns » Thu Jul 29, 2010 12:54 am

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))
Arun
User avatar
arcvns
 
Posts: 55
Joined: Sat Feb 28, 2009 12:36 am
Location: India
Has thanked: 0 time
Been thanked: 0 time

Re: Reformatting Of Field.

Postby Alissa Margulies » Fri Jul 30, 2010 1:26 am

Arun - yes, that will produce the requested output.
Alissa Margulies
Syncsort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Alissa Margulies
Global moderator
 
Posts: 369
Joined: Tue Feb 26, 2008 11:15 pm
Location: USA
Has thanked: 1 time
Been thanked: 3 times

Re: Reformatting Of Field.

Postby arcvns » Mon Aug 02, 2010 1:04 pm

Hi Alissa,

Thanks for the follow up. :)
Arun
User avatar
arcvns
 
Posts: 55
Joined: Sat Feb 28, 2009 12:36 am
Location: India
Has thanked: 0 time
Been thanked: 0 time


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post