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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am


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