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
 

 

Overriding a DD statement

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

New User


Joined: 02 Jan 2006
Posts: 7

PostPosted: Sun Feb 05, 2006 4:21 am    Post subject: Overriding a DD statement
Reply with quote

Dear gurus,

I have a question regarding overriding a cataloged procedure's DD statement. I am calling the DSNHCOB2 cataloged procedure which resides (in my case in SYS1.PROCLIB).

I have a simple COBOL/DB2 stub program and I want to successfully precompile, compile and link it. And hopefully run it!

In the LKED part I have the following:

//SYSLIB DD DSN=SYS1.V]R].COB2LIB,DISP=SHR
// DD DISP=SHR,
// DSN=FILE2
//* DD DISP=SHR,FILE3
// DD DISP=SHR,FILE4
// DD DISP=SHR,FILE5
//* DD DISP=SHR,FILE6
// DD DISP=SHR,FILE7

The ] and ] in the LKED part are causing my JCL to fail. I have attempted writing:

LKED.SYSLIB DD DSN=SYS1.PROCLIB,DISP=SHR (in my calling JCL)

But it still fails and does not override the first DD statement. I have attempted writing the above and including the other DD's in (word for word)- but again, doesn't work.

It seems to work when I try to override the LKED.SYSLMOD or any other for that matter in this cataloged procedure. Am I doing something wrong by attempting to override LKED.SYSLIB? HELP !!!!!

Thanks in advance.
Back to top
View user's profile Send private message

parsesource

New User


Joined: 06 Feb 2006
Posts: 97

PostPosted: Mon Feb 06, 2006 1:07 am    Post subject:
Reply with quote

']' is not a valid character for a dataset-name.
even if a statement is overridden, jes scans all parts of a procedure for syntax-errors. (i think)

does this error occur, if you run your job with typrun=scan ?
Back to top
View user's profile Send private message
thesexyone

New User


Joined: 02 Jan 2006
Posts: 7

PostPosted: Fri Feb 10, 2006 4:08 am    Post subject: Re: Overriding a DD statement
Reply with quote

H,

Managed to get past it by finding another DSNHCOB2 that didn't have [ in it.

Thanks for your feedback
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 DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am


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