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

Overriding a DD statement


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts SYNCSORT/ICETOOL JOINKEYS SORT Statem... DFSORT/ICETOOL 13
No new posts DFDSS COPY using Filter REFDT statement JCL & VSAM 2
Search our Forums:

Back to Top