Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Display Datasets with partial HLQ

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
sameer

New User


Joined: 10 Mar 2005
Posts: 33
Location: United States Of America

PostPosted: Tue Apr 15, 2008 9:25 pm    Post subject: Display Datasets with partial HLQ
Reply with quote

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
View user's profile Send private message
References
PostPosted: Tue Apr 15, 2008 9:25 pm    Post subject: Re: Display Datasets with partial HLQ Reply with quote

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 1087
Location: At my desk

PostPosted: Tue Apr 15, 2008 9:34 pm    Post subject:
Reply with quote

Without a TSO session to test, isn't there a way to point/capture the 3.4 output to a dataset?
Back to top
View user's profile Send private message
sameer

New User


Joined: 10 Mar 2005
Posts: 33
Location: United States Of America

PostPosted: Tue Apr 15, 2008 9:51 pm    Post subject: Reply to: Display Datasets with partial HLQ
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3014
Location: Charlotte,NC USA

PostPosted: Tue Apr 15, 2008 9:56 pm    Post subject: Reply to: Display Datasets with partial HLQ
Reply with quote

The ISPF LMDLIST service gives you what you want. You can call if from a program of your design.
Back to top
View user's profile Send private message
Moved: Tue Apr 15, 2008 9:56 pm by superk From JCL to SMS & VSAM
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 2443
Location: italy

PostPosted: Tue Apr 15, 2008 10:14 pm    Post subject: Reply to: Display Datasets with partial HLQ
Reply with quote

option 3.4 and SAVE
Back to top
View user's profile Send private message
Gnanas SNG

Senior Member


Joined: 06 Sep 2007
Posts: 414
Location: India

PostPosted: Wed Apr 16, 2008 3:11 pm    Post subject:
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 2443
Location: italy

PostPosted: Wed Apr 16, 2008 6:47 pm    Post subject: Reply to: Display Datasets with partial HLQ
Reply with quote

You have alos the option of saving to a dataset of Your choice

Code:
save dataset_name


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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 821
Location: Chennai - India

PostPosted: Wed Apr 16, 2008 10:23 pm    Post subject: Reply to: Display Datasets with partial HLQ
Reply with quote

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
View user's profile Send private message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 148
Location: PUNE(INDIA)

PostPosted: Thu Apr 17, 2008 1:40 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 821
Location: Chennai - India

PostPosted: Thu Apr 17, 2008 3:43 pm    Post subject: Reply to: Display Datasets with partial HLQ
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1