View previous topic :: View next topic
|
Author |
Message |
thesexyone
New User
Joined: 02 Jan 2006 Posts: 7
|
|
|
|
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 |
|
|
parsesource
New User
Joined: 06 Feb 2006 Posts: 97
|
|
|
|
']' 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 |
|
|
thesexyone
New User
Joined: 02 Jan 2006 Posts: 7
|
|
|
|
H,
Managed to get past it by finding another DSNHCOB2 that didn't have [ in it.
Thanks for your feedback |
|
Back to top |
|
|
|