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

can we write VSAM file in subprogram which is opened in main


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Gajanan Jawalekar

New User


Joined: 30 Jan 2008
Posts: 1
Location: chennai

PostPosted: Wed Sep 17, 2008 6:14 pm
Reply with quote

hi,
I want to to write a into VSAM file in subprogram which is already opened in main program. when Iam trying to do so.. it is giving error like file is not opend. is there any way to do the same.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Wed Sep 17, 2008 6:29 pm
Reply with quote

Quote:
is there any way to do the same.
Maybe -- what is the language of the main and subprogram?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Sep 17, 2008 9:27 pm
Reply with quote

we used to get around this problem before db2 by having one sub module that performed all i/o depending upon function code in the calling parms. this was coded in cobol
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
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
Search our Forums:

Back to Top