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
 

 

JCLLIB statement pointing to a LOAD lib

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCLLIB statement pointing to a LOAD lib
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue May 26, 2009 6:15 pm    Post subject: Reply to: JCLLIB statement pointing to a LOAD lib
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

Moderator Team Head


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

PostPosted: Tue May 26, 2009 6:20 pm    Post subject: Reply to: JCLLIB statement pointing to a LOAD lib
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    Post subject: Reply to: JCLLIB statement pointing to a LOAD lib
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    Post subject: Reply to: JCLLIB statement pointing to a LOAD lib
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue May 26, 2009 6:53 pm    Post subject: Reply to: JCLLIB statement pointing to a LOAD lib
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

Moderator Team Head


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

PostPosted: Tue May 26, 2009 7:00 pm    Post subject: Reply to: JCLLIB statement pointing to a LOAD lib
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

Senior Member


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

PostPosted: Tue May 26, 2009 7:31 pm    Post subject: Re: Reply to: JCLLIB statement pointing to a LOAD lib
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    Post subject: Reply to: JCLLIB statement pointing to a LOAD lib
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed May 27, 2009 3:34 pm    Post subject: Reply to: JCLLIB statement pointing to a LOAD lib
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    Post subject:
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

Senior Member


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

PostPosted: Tue Jun 02, 2009 6:48 pm    Post subject:
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

Site Director


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

PostPosted: Tue Jun 02, 2009 9:32 pm    Post subject:
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: 356
Location: New York

PostPosted: Wed Jun 03, 2009 12:24 pm    Post subject:
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    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 Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am
This topic is locked: you cannot edit posts or make replies. ERROR WHILE SUBMITTING LOAD JOB ANURADHA NEELAKANTAN JCL & VSAM 12 Thu Aug 25, 2016 11:50 am


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