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

Unknown number of output files


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Aug 05, 2008 1:38 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top