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

File Handling- Confusion


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

New User


Joined: 06 Jul 2005
Posts: 11
Location: India

PostPosted: Thu Mar 13, 2008 11:17 am
Reply with quote

I am confused.. Situation i like that
1. I have a JCL
2. JCL executes a program pgm-a
3. pgm-a call another program pgm-b

I need to add file pgm-b. I did like this. I added all File Control and descrrption in pgm-b and declared that file in JCL. I am little bit confused since JCL is executing pgm-a.

Am i right? If not, what should be correct approach.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Mar 13, 2008 12:08 pm
Reply with quote

Hi,

Quote:
I am confused
... icon_smile.gif ..agree, sentence construction of your post shows this.. icon_smile.gif. But this
Quote:
I added all File Control and descrrption in pgm-b and declared that file in JCL. I am little bit confused since JCL is executing pgm-a.

is prefectly right. Hopefully Clouds of confusion are fading away.. icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 13, 2008 7:25 pm
Reply with quote

Hello,

Quote:
I am little bit confused since JCL is executing pgm-a.
There will be one EXECution per step. Regardless of which module uses a dataset, the DD statement for that dataset will follow the EXEC.

You have done this correctly.
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 3
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
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top