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
 

 

PDS member name & COBOL program ID query

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
markanthos

New User


Joined: 28 Apr 2005
Posts: 14
Location: India

PostPosted: Wed May 11, 2005 12:44 pm    Post subject: PDS member name & COBOL program ID query
Reply with quote

ASSUME in a JCL :


//prog exe pgm=prog1

In case of COBOL program :

PROGRAM-ID. PROG1.

PDS has a member with the name PROG1


Will the execution of the JCL refer to the program ID of the COBOL or the name of the member of PDS in the dataset?
Back to top
View user's profile Send private message

gnagakishore

New User


Joined: 26 Mar 2005
Posts: 25
Location: Hyderabad

PostPosted: Wed May 11, 2005 12:52 pm    Post subject: Re: PDS member name & COBOL program ID query
Reply with quote

markanthos wrote:
ASSUME in a JCL :


//prog exe pgm=prog1

In case of COBOL program :

PROGRAM-ID. PROG1.

PDS has a member with the name PROG1


Will the execution of the JCL refer to the program ID of the COBOL or the name of the member of PDS in the dataset?


it refers name of the member of pds in the dataset.
Back to top
View user's profile Send private message
narasimharao_koganti

New User


Joined: 26 Apr 2005
Posts: 11
Location: pune

PostPosted: Wed May 11, 2005 1:48 pm    Post subject:
Reply with quote

hi, regardless of the name in the progaram_id, during execution of the Jcl it will refer to the dataset name.
Back to top
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Wed May 11, 2005 2:21 pm    Post subject:
Reply with quote

Hi,
Correct me if I am wrong, exec pgm=prog1 will execute the load module
present with the name prog1 that too present in joblib or steplib.

regards,
David.
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Wed May 11, 2005 4:49 pm    Post subject:
Reply with quote

i totaly agree with david.
it never checks from where the job is taken..for JES jcl will just act as sequence of command which will be read by internal reader of JES.then it will try to find the program name mentioned in the given steplib or joblib...
PDS where job is present doesn't play any role while executing that job.
correct me if i m wrong
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am


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