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 Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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