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: 4649
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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 4 Wed Jul 26, 2017 7:35 pm
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 JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm


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