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

JCLLIB statement pointing to a LOAD lib


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nischal

New User


Joined: 04 Nov 2008
Posts: 4
Location: Pune

PostPosted: Tue May 26, 2009 6:12 pm
Reply with quote

Hi,

Can we have a JCLLIB statement pointing to a LOAD library?


Thanks,
Nischal
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 26, 2009 6:15 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue May 26, 2009 6:20 pm
Reply with quote

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
View user's profile Send private message
nischal

New User


Joined: 04 Nov 2008
Posts: 4
Location: Pune

PostPosted: Tue May 26, 2009 6:24 pm
Reply with quote

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
View user's profile Send private message
nischal

New User


Joined: 04 Nov 2008
Posts: 4
Location: Pune

PostPosted: Tue May 26, 2009 6:38 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 26, 2009 6:53 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue May 26, 2009 7:00 pm
Reply with quote

This really sounds to me like it's more of an issue for Compuware to address.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue May 26, 2009 7:31 pm
Reply with quote

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)                     
icon_confused.gif
Back to top
View user's profile Send private message
nischal

New User


Joined: 04 Nov 2008
Posts: 4
Location: Pune

PostPosted: Wed May 27, 2009 3:21 pm
Reply with quote

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. icon_confused.gif

Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed May 27, 2009 3:34 pm
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Tue Jun 02, 2009 7:00 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Jun 02, 2009 6:48 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 02, 2009 9:32 pm
Reply with quote

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
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Wed Jun 03, 2009 12:24 pm
Reply with quote

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
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 Load new table with Old unload - DB2 DB2 6
No new posts How to load to DB2 with column level ... DB2 6
No new posts REASON 00D70014 in load utility DB2 6
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts DB2 Load - Sort Or order BY DB2 1
Search our Forums:

Back to Top