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
 

 

Including header and trailer in flat files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
JASON

New User


Joined: 24 Aug 2006
Posts: 2
Location: philippines

PostPosted: Mon Aug 28, 2006 6:40 am    Post subject: Including header and trailer in flat files
Reply with quote

hi can anyone help me with my program...?
i need to include error log file in my program.
this error log file include a header, detail and 2 trailer.
the header holds the rundate
detail for the said error
the 1st trailer hold the number of error for the rundate
and the 2nd trailer computes for the previous number of error + the current number of error
the file should look like this one....
08272006 rundate
00001CN01XXXXXXXXDUPLICATE DATA error detail
00002CN01XXXXXXXXDUPLICATE DATA error detail
00003CN01XXXXXXXXDUPLICATE DATA error detail
000000000003 total number of error
000000000003 total error + previous error
08282006 rundate
00004CN01XXXXXXXXDUPLICATE DATA error detail
00005CN01XXXXXXXXDUPLICATE DATA error detail
000000000002 total number of error
000000000005 total error + previous error

how am i going to sort the error detail for the day without mixing up with header and trailers.??
and how am i going to know if what i read is a header or trailer??

i really need help badly...
thanks.
Back to top
View user's profile Send private message

DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Mon Aug 28, 2006 7:49 am    Post subject: Re: Including header and trailer in flat files
Reply with quote

Jason my friend,

For SORT questions, you should post this under VSAM & DFSORT. Mr. Frank Yaeger is the Wizard of Wizards when it comes to DFSORT. If it can be done Frank will know how.

Dave
Back to top
View user's profile Send private message
JASON

New User


Joined: 24 Aug 2006
Posts: 2
Location: philippines

PostPosted: Mon Aug 28, 2006 3:37 pm    Post subject:
Reply with quote

DAVE,

THANKS
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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