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
 

 

Unknown number of output files

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

New User


Joined: 18 Jun 2008
Posts: 2
Location: Alabama

PostPosted: Tue Aug 05, 2008 1:13 am    Post subject: Unknown number of output files
Reply with quote

I have written a COBOL program to write out a single batch file of HIPAA 270 transactions. The single file contains multiple ISA/IEA segments. This has been fine in the past, but last year it created 48 ISA/IEA segments. My problem is that when the program finishes, I'm having to break out each ISA/IEA segment into its own file for further processing. I'm doing this manually. Without creating enough FDs to handle an unknown number of output files, and I'm not an assembler programmer, but many years ago I worked in a shop that used a called assembler routine that could have named and created output files within a COBOL program so in situations like this no further manipulation was needed. Can anybody help me with how this could be done? Or maybe provide me with an assembler routine that can do this kind of thing?
Thanks.
- John
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Aug 05, 2008 1:38 am    Post subject: Reply to: Unknown number of output files
Reply with quote

Start with this previous topic.
Back to top
View user's profile Send private message
John Monse

New User


Joined: 18 Jun 2008
Posts: 2
Location: Alabama

PostPosted: Tue Aug 05, 2008 8:44 pm    Post subject:
Reply with quote

Thanks Kevin. Have to see if I can make sense out of all the information.
- John
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 find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 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
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm


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