Query for Rexx Code



IBM's Command List programming language & Restructured Extended Executor

Query for Rexx Code

Postby Sonal C » Wed Nov 07, 2012 12:24 pm

Hi, I am new to Rexx. I want to reetrive the dataset names present in Master catalog. Anybody can help me please?
Sonal C
 
Posts: 17
Joined: Wed Nov 07, 2012 12:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Query for Rexx Code

Postby Pandora-Box » Wed Nov 07, 2012 12:36 pm

Please define Mastor catalog for further inputs
User avatar
Pandora-Box
 
Posts: 65
Joined: Fri Feb 10, 2012 8:30 pm
Location: Mars
Has thanked: 3 times
Been thanked: 6 times

Re: Query for Rexx Code

Postby Sonal C » Wed Nov 07, 2012 12:41 pm

I am sorry but i didn't got your question. As far as I know Mastor Catalog is the list of datasets which we can see using option 3.4 in ISPF panel. I want the list of all datasets present there in 1 PS file. how can I go for it using Rexx?

Thank you for your help.
Sonal C
 
Posts: 17
Joined: Wed Nov 07, 2012 12:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Query for Rexx Code

Postby Pandora-Box » Wed Nov 07, 2012 1:30 pm

Probably you need to check here http://ibmmainframes.com/about20708.html

So once you receive the list for the qualifier you can write them to output file
User avatar
Pandora-Box
 
Posts: 65
Joined: Fri Feb 10, 2012 8:30 pm
Location: Mars
Has thanked: 3 times
Been thanked: 6 times

Re: Query for Rexx Code

Postby enrico-sorichetti » Wed Nov 07, 2012 2:27 pm

search here
http://ibmmainframes.com/
using
IGGCSI00 for the keyword
and
expat* for the Author
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: Query for Rexx Code

Postby mongan » Wed Nov 07, 2012 2:40 pm

You should define your requirements more. You can actually get what you want using the IDCAMS utility, so why Rexx?
User avatar
mongan
 
Posts: 211
Joined: Tue Jan 11, 2011 8:32 pm
Has thanked: 1 time
Been thanked: 5 times

Re: Query for Rexx Code

Postby Sonal C » Wed Nov 07, 2012 2:48 pm

Thank you all for your response. I have to write the program in Rexx as per my project requirement. I will go through links provided by you. If I will face any issue or if I can find the solution I will contact you people again.

Thanks again.
Sonal C
 
Posts: 17
Joined: Wed Nov 07, 2012 12:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Query for Rexx Code

Postby Sonal C » Wed Nov 07, 2012 3:37 pm

Pandora-Box wrote:Probably you need to check here http://ibmmainframes.com/about20708.html

So once you receive the list for the qualifier you can write them to output file


Hi Pandora,

i got small code from the link given by you.
/* REXX */
"ISPEXEC LMDINIT LISTID(idv) LEVEL(A*)"
Do Forever
"ISPEXEC LMDLIST LISTID("idv") OPTION(LIST) DATASET(dsvar)"
If rc = 0 Then Say "'"dsvar"'"
Else Leave
End
"ISPEXEC LMDLIST LISTID("idv") OPTION(FREE)"

Can you please explain me the use of DSVAR? I mean I am not getting the flow of code. Or can you please suggest me any book which is better for beginners.

Thank you.
Sonal C
 
Posts: 17
Joined: Wed Nov 07, 2012 12:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Query for Rexx Code

Postby Akatsukami » Wed Nov 07, 2012 3:55 pm

Sonal C wrote:Thank you all for your response. I have to write the program in Rexx as per my project requirement.

You might look for another job whilst you're at it, since currently you have an incompetent moron of a team lead who assigns a unqualified person to do a redundant task...not a promising situation.
"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: Query for Rexx Code

Postby enrico-sorichetti » Wed Nov 07, 2012 4:00 pm

I have to write the program in Rexx as per my project requirement.

what kind of idiot/moron/(add as many as You want) project leader You got there...
assigning a task to somebody who does not have the skill to carry it along :evil:

Just pointing out that You are the innocent victim here

for the docs and resources

not the latest ones but more than enough to get You started ..

TSO/REXX
http://publibz.boulder.ibm.com/cgi-bin/ ... s/IKJ4BK90

ISPF
http://publibz.boulder.ibm.com/cgi-bin/ ... s/ISPZPM70

for the mother of all manuals ( IBM )
http://www-03.ibm.com/systems/z/os/zos/ ... index.html

and navigate to the bookshelves for Your zOS level

for an insight of IGGCSI00 usage and a GOOD example
see ...

 VIEW     SYS1.SAMPLIB                                       Row 00001 of 00004
 Command ===>                                                  Scroll ===> CSR
    Name     Prompt          Size    Created           Changed            ID
 . IGGCSILC
 . IGGCSIRX
 . IGGCSIVG
 . IGGCSIVS
   **End**


VIEW       SYS1.SAMPLIB(IGGCSIRX) - 01.00                  Columns 00001 00072
 Command ===>                                                  Scroll ===> CSR
 ****** ***************************** Top of Data ******************************
 000500 /* REXX */
 001000  /********************************************************************/
 001500  /*                                                                  */
 002000  /*       NAME: IGGCSIRX                                             */
 002500  /*DESCRIPTION: THIS REXX EXEC IS USED TO CALL THE CATALOG           */
 003000  /*             SEARCH INTERFACE.                                    */
 003500  /*      INPUT: FILTER KEY                                           */
 004000  /*     OUTPUT: DATA SETS NAMES AND VOLUMES                          */
 004062  /*                                                                  */


the above sample is working asis,
if it does not fit Your requirement is the best starting point to write Your own


the IGGCSI00 approach has the BIG advantage of not depending on ISPF facilities being available
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Next

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post