IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Insert a trailer record and count the records.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dharmaraok

New User


Joined: 10 Mar 2011
Posts: 45
Location: india

PostPosted: Thu Dec 19, 2013 10:15 pm
Reply with quote

I am having below INPUT file :

Header
Transaction records

HH0303030 - header
D22221111 - transaction record
D33332222- transaction record.

In my output trailer record should insert with total count of records from position 2 of 4 bytes (including header and transaction records) and sum of the amount field(starts at position 6 and having length 5 bytes ) at 6poistion in the output files.

the output should be:

HH0303030 - header
D22221111 - transaction record
D33332222- transaction record.
T00023333 - Trailer record.

the count and sum of the field should be written into COMP-3 format. the Input also in COMP-3Format.

Could you please let me know . how to achieve this
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Dec 19, 2013 10:28 pm
Reply with quote

Hello,

Which sort product is being used on your system?
Back to top
View user's profile Send private message
dharmaraok

New User


Joined: 10 Mar 2011
Posts: 45
Location: india

PostPosted: Fri Dec 20, 2013 9:56 am
Reply with quote

syncsort
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts To get the count of rows for every 1 ... DB2 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top