Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Sort job to manipulate the outrec fields.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
mc.satya

New User


Joined: 11 Oct 2009
Posts: 1
Location: Chennai,India

PostPosted: Tue Oct 20, 2009 10:28 am    Post subject: Sort job to manipulate the outrec fields.
Reply with quote

I have to sort a particular file and sum certain fields of the same file.
Also I need to manipulate a particular field of the output file based on the summed up values.

Here goes my sort parameters:

Code:

  SORT FIELDS=(1,3,CH,A,4,10,CH,A,14,4,CH,A,18,1,CH,A,51,1,CH,A,       
    76,3,CH,A)
  SUM FIELDS=(19,8,27,8,35,8,43,8,52,8,60,8),FORMAT=ZD                 
  OUTREC OVERLAY=(19:19,8,ZD,EDIT=(IIIIIIIT),27:27,8,ZD,EDIT=(IIIIIIIT),
    35:35,8,ZD,EDIT=(IIIIIIIT),43:43,8,ZD,EDIT=(IIIIIIIT),               
    52:52,8,ZD,EDIT=(IIIIIIIT),60:60,8,ZD,EDIT=(IIIIIIIT),               
    68:68,8,(60,8,ZD,DIV,35,8,ZD),MUL,+100,TO=ZD)


the 68 th position field has a length of 8 and it should be manipulated from the calc (60 position field / 35 position field) * 100.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Oct 20, 2009 7:29 pm    Post subject:
Reply with quote

Hello,

Please post some sample input and the output you want from that sample input.

Also mention the recfm and lrecl of both files.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us