View previous topic :: View next topic
|
Author |
Message |
nischal
New User
Joined: 04 Nov 2008 Posts: 4 Location: Pune
|
|
|
|
Hi,
Can we have a JCLLIB statement pointing to a LOAD library?
Thanks,
Nischal |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10879 Location: italy
|
|
|
|
the description of the jcllib statement should have hinted You already
there is a link at the top of the page that will take You to the manuals |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
19.1.7 Considerations for Using the JCLLIB Statement.
Quote: |
You can specify only one JCLLIB statement in a job.
The system and private libraries that you specify on the JCLLIB statement can contain both procedures and INCLUDE groups.
The private libraries that you specify on the JCLLIB statement must comply with the following rules:
The private library must be cataloged.
The private library must be accessible to the job. The library must be permanently resident and online.
The JCLLIB data set cannot be a password-protected data set.
The job must have read access to any system or private libraries specified on JCLLIB.
The private library must have the same data set attributes as a system library, which are:
Logical record length of 80 bytes (LRECL=80)
Fixed length records (RECFM=F or RECFM=FB). If the JCLLIB data set is a PDSE, the record format can only be RECFM=FB.
When multiple libraries are specified on the JCLLIB statement, these libraries will be concatenated.
|
|
|
Back to top |
|
|
nischal
New User
Joined: 04 Nov 2008 Posts: 4 Location: Pune
|
|
|
|
yes, i have gone through the manual and some of the queries relating to JCLLIB on this forum. And i'm quite familiar with the way JCLLIB works.
But i have a requirement to test the ABENDAID, where in i have to point JCLLIB to a LOAD library. But when i recompile the code in CHANGEMAN i'm getting the error ” Unauthorized use of the JCLLIB”.
Is there anything you can help me with to resolve this error.. |
|
Back to top |
|
|
nischal
New User
Joined: 04 Nov 2008 Posts: 4 Location: Pune
|
|
|
|
thanks for your answers.
I have this error resolved by pointing the STEPLIB statement to the LOAD library.
But the requirement is the I have to point it to a JCLLIB to check if it works. I'm quite sure that it doesnt. I wanted the confirmation so that i could proceed.
Thanks,
Nischal |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10879 Location: italy
|
|
|
|
there is a bit of misunderstanding around here between
JCLLIB statement which is JCL statement like JOB,DD,EXEC,...
and the possible use of jcllib as a ddname,
IIRC the only <reserved> ddname are JOBCAT,STEPCAT,JOBLIB,STEPLIB
nobody/nothing prevents using JCLLIB as a ddname |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
This really sounds to me like it's more of an issue for Compuware to address. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
nischal wrote: |
But the requirement is the I have to point it to a JCLLIB to check if it works. |
First, who come up with this kind of requirement?
Second, Please show the changeman message with "message ID" and the JCL for which the error was thrown, showing the use of JCLLIB --as I'm little confused with the recent replies. I assume JCLLIB is used as
Code: |
//PROCS JCLLIB ORDER=(TEST.PROCLIB1,TEST.PROBLIB2,
// SYS2.PROCLIB) |
|
|
Back to top |
|
|
nischal
New User
Joined: 04 Nov 2008 Posts: 4 Location: Pune
|
|
|
|
I agree with you Anuj. That is how i used to use JCLLIB till now. But the requirement is from the Client to point it to a LOAD lib. So i couldnt do much with that.
So i did a recompilation of a source code in the Changeman and edited the Changeman JCL to look like below. JCLLIB statement is pointing to the Load library.
===> //NR151FZ JOB (ABCD,XXXX,9999,9999),________
===> // NOTIFY=NR151F,SCHENV=CMN@CMNDT3E________________________________
===> //ESYLIB JCLLIB ORDER=(TES1.TEST.LOAD)____________________
===> //*________________________________________________________________
Press ENTER to process; Enter END command to exit.
Unauthorized use of the JCLLIB, EXEC, or INCLUDE JCL statements.
This is the error message which pops up when i hit enter>>"Unauthorized use of the JCLLIB, EXEC, or INCLUDE JCL statements".
I also think that this should be addressed to the Changeman administrator. But i'm not quite sure.
Thanks |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10879 Location: italy
|
|
|
|
Your client is setting requirement without knowing what he/she is talking about
reread my previous post about the difference between a JCL statement and a ddname
as You already discovered
You cannot use a load library as a component of the JCLLIB construct,
but
You can use a JCLLIB ddname to point to a load library
it would be wiser for all the people involved to reread the docs,
product related and JCL related ( guide and reference ) |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Use a STEPLIB or JOBLIB to point at a special load library for testing.
Maybe they want you to build a new JCL stream with a STEPLIB and put that into the JCLLIB? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Quote: |
I also think that this should be addressed to the Changeman administrator. But i'm not quite sure. |
May be before that requirement should be understood properly, FWIW. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
But the requirement is from the Client to point it to a LOAD lib |
Please post this requirement as written by the client. If it has not been written, request that it be written. . . |
|
Back to top |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
Nischal,
Please refer the below statements on JCLLIB I found.
Quote: |
The JCLLIB statement allows you to code and use procedures and INCLUDE groups in a private library without the need to use system procedure libraries.
|
I don't think we can point to load libraries using JCLLIB as you have shown.
Quote: |
I also think that this should be addressed to the Changeman administrator. But i'm not quite sure.
|
I am not sure why to address to changeman administrator when JCLLIB was developed for Procedure puproses but not to point to Load Libraries. |
|
Back to top |
|
|
|