member of a master librarian



IBM's Command List programming language & Restructured Extended Executor

member of a master librarian

Postby jospa » Mon Mar 05, 2012 7:50 pm

hi all, good day
how can i know if a member of master librarian exists ?
i tried ISPEXEC SELECT PGM(ELIPS) NEWAPPL(LIB@) NEWPOOL +
PARM( +
DSN('TTQTSL.PROD.COBOL(&ARCHIVO)') +
CMD('I') +
RETURN +
)
but if exists show me a panel with the information of the member and i don't want that i just only want to get rc=0, is member, rc=20 or whatever, is not member.
I appreciate your help, regards
jospa
 
Posts: 9
Joined: Mon Feb 27, 2012 8:27 pm
Has thanked: 0 time
Been thanked: 1 time

Re: member of a master librarian

Postby Akatsukami » Mon Mar 05, 2012 8:23 pm

Your post is slightly incoherent. If you are referring to CA's Librarian, then if your site is licensed you should have the documentation; otherwise the unwanted panel is the least of your worries (you are knowingly using stolen software). If you are not so referring, you need to make clear of what you're speaking.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: member of a master librarian

Postby jospa » Mon Mar 05, 2012 8:40 pm

Hi Akatsukami, I know what I wrote probably sounded incoherent, but it was the best I could explain. can I reply in Spanish?
jospa
 
Posts: 9
Joined: Mon Feb 27, 2012 8:27 pm
Has thanked: 0 time
Been thanked: 1 time

Re: member of a master librarian

Postby BillyBoyo » Mon Mar 05, 2012 9:06 pm

No, Spanish would not get you far.

Are you using CA-Librarian?

If you are, you have the CA documentation and CA's support. From memory their website has "user community" discussion boards, where you would find many people skilled and knowledgeable in the product.

If not CA-Librarian, then you have to start the explanation again.

If I understand it, you just want a return-code of 0 (present) or 20 (not present) and not the panel that you are receiving. You have to find the documentation for the product you actually are using.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: member of a master librarian

Postby Robert Sample » Mon Mar 05, 2012 9:45 pm

The presence of ELIPS in your post implies you are dealing with CA-LIBRARIAN. In that case, your best bet would be to go to the CA support site and ask your question there. CA has much more experience with their application and screens than anyone on this forum. It may -- or may not -- be possible to get what you want; only CA can tell you for sure.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: member of a master librarian

Postby jospa » Mon Mar 05, 2012 10:51 pm

hi BillyBoyo, Robert Sample, thank for reply
yes, i'm using ca-librarian but i dont have any documentation at hand because the leader is on vacation
i will follow your suggestions and i will go to the CA support site
congratulations for the forum, it's excellent and the answers are quick.
thank you very much, regards

These users thanked the author jospa for the post:
Praveenkumar M (Mon Jun 25, 2012 7:02 pm)
jospa
 
Posts: 9
Joined: Mon Feb 27, 2012 8:27 pm
Has thanked: 0 time
Been thanked: 1 time

Re: member of a master librarian

Postby jospa » Fri Mar 09, 2012 10:53 pm

Hi all
I cant go to ca-support site because I have to wait for the
leader to return. I have waited long for this and I must
resolve it. i have thought about something: I need to know by
using clist, if a member of a master ca-librarian exists. for that
I need to know the return code of a job submitted from the clist.
i'm trying this: sending the member to ca-librarian as new and if the
member exists the job returns me code 12 and if not, returns 0.
the job runs in less than 3 seconds,
but i dont know how to catch the return code.
i'm using SUBMIT * END($$)
I would appreciate the help you can give me
regards
jospa
 
Posts: 9
Joined: Mon Feb 27, 2012 8:27 pm
Has thanked: 0 time
Been thanked: 1 time

Re: member of a master librarian

Postby Robert Sample » Fri Mar 09, 2012 11:59 pm

You would be better served by generating a file containing an index list against the CA-Librarian master file and then using CLIST / REXX to process the file contents. JCL to generate an index list:
//STEP1    EXEC LIBRIAN,PARM='NRJS,NJTA,IEX=LIBX' <== these options may vary by site
//MASTER   DD DISP=SHR,DSN=<your.librarian.master.file>
//LIST     DD DISP=SHR,DSN=<your.output.file.name>
//SYSPRINT DD SYSOUT=*,DCB=BLKSIZE=3059
//OSJOB    DD DUMMY
//SYSIN    DD  *
-OPT INDEX(M)
-END
/*
You may need a STEPLIB as well, depending upon how CA-Librarian is installed at your site.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: member of a master librarian

Postby jospa » Sat Mar 10, 2012 2:52 am

thank for reply robert, good tip but I can access ca librarian manually. I'm not interested in generating a file to see if the member exists or not, I need to do it by using clist. I just want to know how to verify the existence of the member and continue the execution of the clist.

best regards
jospa
 
Posts: 9
Joined: Mon Feb 27, 2012 8:27 pm
Has thanked: 0 time
Been thanked: 1 time

Re: member of a master librarian

Postby Robert Sample » Sat Mar 10, 2012 4:16 am

In that case, I hope you are aware that CA-Librarian files are either VSAM or BDAM and under no circumstances can you use IBM utilities like IEBCOPY or IEBGENER on them. You must use either CA programs from their SAMPLIB or the SUBSYS=LAM interface (IF it is installed at your site -- not all sites install the SUBSYS=LAM interface). If the SUBSYS=LAM interface is installed, you can treat -- to some degree -- a CA-Librarian master file as if it were a PDS.

If you are expecting to use a CLIST without using the SUBSYS=LAM, be aware that the format of CA-Librarian master files is proprietary to CA and you may well find it impossible to determine what you want to know. Since you are so bound and determined to use your one method (CLIST), you need to be prepared for the very good chance that it will not be possible for you to acquire the data you want, period.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Next

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post