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 -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
No new posts Converting NULL column into NOT NULL ... Raghu navaikulam DB2 5 Sat Aug 06, 2016 3:45 pm
This topic is locked: you cannot edit posts or make replies. Updating value of key using rewrite s... ParminderKumar COBOL Programming 4 Thu Aug 04, 2016 12:46 am
No new posts Inspect statement spoorni COBOL Programming 5 Mon Jun 06, 2016 9:53 pm


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