|
|
| Author |
Message |
sameer
New User
Joined: 10 Mar 2005 Posts: 33 Location: United States Of America
|
|
|
|
Is it possible to display datasets list with partial HLQ ?
When I type ZCH* in 3.4 option, I am able to get list of datasets starting with ZCH. Is there anyway we can generate the same list using JCL so that I can have the list in one Dataset for analysis?
JCL / REXX code will help me.
Thanks, |
|
| Back to top |
|
 |
References
|
Posted: Tue Apr 15, 2008 9:25 pm Post subject: Re: Display Datasets with partial HLQ |
 |
|
|
 |
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 1142 Location: At my desk
|
|
|
|
| Without a TSO session to test, isn't there a way to point/capture the 3.4 output to a dataset? |
|
| Back to top |
|
 |
sameer
New User
Joined: 10 Mar 2005 Posts: 33 Location: United States Of America
|
|
|
|
Thanks for the reply. I want JCL / REX code so that whenever I want I can run JOB and get the Dataset List.
Screen capture option is there but caul't help me as I have thousands of datasets under this catogiry and will be huge manual work to capture them.
Please help. |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3094 Location: Charlotte,NC USA
|
|
|
|
| The ISPF LMDLIST service gives you what you want. You can call if from a program of your design. |
|
| Back to top |
|
 |
Moved: Tue Apr 15, 2008 9:56 pm by superk From JCL to SMS & VSAM |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 2560 Location: italy
|
|
|
|
| option 3.4 and SAVE |
|
| Back to top |
|
 |
Gnanas SNG
Senior Member
Joined: 06 Sep 2007 Posts: 417 Location: India
|
|
|
|
Enrico,
I got this message after option 3.4 and SAVE.
| Code: |
| The listing of data sets was placed in the ISPF list data set. |
How to view this ISPF list data set? |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 2560 Location: italy
|
|
|
|
You have alos the option of saving to a dataset of Your choice
to browse edit an spflist/spflog dataset enter on the command line
list/log and follow the instructions in the next panel |
|
| Back to top |
|
 |
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1003 Location: Chennai - India
|
|
|
|
sameer,
| Quote: |
I want JCL / REX code so that whenever I want I can run JOB and get the Dataset List.
|
Try this code.
HLQ1 - partial dataset names
| Code: |
ADDRESS ISPEXEC "LMDINIT LISTID(TEMPLIST) LEVEL("HLQ1")"
DO FOREVER
ADDRESS ISPEXEC
"LMDLIST LISTID(&TEMPLIST) OPTION(LIST) DATASET(DSVAR) STATS(YES)"
IF RC <> 0 THEN LEAVE
Queue DSVAR
DSVAR = ''
END
ADDRESS ISPEXEC "LMDFREE LISTID(&TEMPLIST)"
return |
Finally write the queue into a dataset.
P.S - > I have used this code before, but did not test it before posting. |
|
| Back to top |
|
 |
ParagChouguley
Active User
Joined: 03 Feb 2007 Posts: 151 Location: PUNE(INDIA)
|
|
|
|
Hi Aaru,
I tried your rexx code, but its giving me error as "A command entered or contained in a CLIST has invalid syntax."
Can you throw some light on this ?
--Parag |
|
| Back to top |
|
 |
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1003 Location: Chennai - India
|
|
|
|
Parag,
| Quote: |
| tried your rexx code, but its giving me error as "A command entered or contained in a CLIST has invalid syntax." |
Did u just execute the code that i had posted? If that is the case it won't work.
I had posted that code as Sameer had issues with that logic alone. This code is just for getting the list and queuing it. |
|
| Back to top |
|
 |
|
|