Page 1 of 2

member of a master librarian

PostPosted: Mon Mar 05, 2012 7:50 pm
by jospa
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

Re: member of a master librarian

PostPosted: Mon Mar 05, 2012 8:23 pm
by Akatsukami
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.

Re: member of a master librarian

PostPosted: Mon Mar 05, 2012 8:40 pm
by jospa
Hi Akatsukami, I know what I wrote probably sounded incoherent, but it was the best I could explain. can I reply in Spanish?

Re: member of a master librarian

PostPosted: Mon Mar 05, 2012 9:06 pm
by BillyBoyo
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.

Re: member of a master librarian

PostPosted: Mon Mar 05, 2012 9:45 pm
by Robert Sample
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.

Re: member of a master librarian

PostPosted: Mon Mar 05, 2012 10:51 pm
by jospa
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

Re: member of a master librarian

PostPosted: Fri Mar 09, 2012 10:53 pm
by jospa
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

Re: member of a master librarian

PostPosted: Fri Mar 09, 2012 11:59 pm
by Robert Sample
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.

Re: member of a master librarian

PostPosted: Sat Mar 10, 2012 2:52 am
by jospa
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

Re: member of a master librarian

PostPosted: Sat Mar 10, 2012 4:16 am
by Robert Sample
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.