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

Writing into o/p file in sub-mod which is opnd in main pgm


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bala_sekar

New User


Joined: 13 Oct 2009
Posts: 3
Location: Chennai

PostPosted: Tue Oct 13, 2009 4:57 pm
Reply with quote

Hi,

Here is my scenario,

I have a file declared and opened in output mode in main program. I call sub module for some process and at the end of the process i should write the data to the file(which is opnd in main program) in sub module.

Say my linkage is of same structure as the ouput file declared in main module.

I dont want the file to be opened/closed in sub module because sub module may be called n number of times by main program.

Pls help me how to handle this in sub module?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 13, 2009 6:15 pm
Reply with quote

There is a link to manuals at the top of the page. Find the COBOL Language Reference manual, do a search on "external file" and read up on what you need to do to use them.
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 Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top