IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

writing 'dataset list' to a dataset


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vamskrish
Warnings : 1

New User


Joined: 31 Jan 2007
Posts: 27
Location: virginia

PostPosted: Wed Jan 16, 2008 6:42 am
Reply with quote

hi,

how can i save the list of "dataset names" available to a dataset.

lets say i have 1000's of files with the name A.S*.*
using ispf option 3.4 i can list all of those but i would like to have that list written to a dataset. i tried option 'P' in 3.4 but i dont understand where exactly the list is printed. kindly suggest what needs to be done.

vamshi
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Jan 16, 2008 8:17 am
Reply with quote

See number 2 here.

Then, see here to determine the name and/or status of the LIST dataset.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jan 16, 2008 11:53 am
Reply with quote

Try the SAVE command.

O.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Jan 16, 2008 8:15 pm
Reply with quote

Enter on cmd line:

SAVE ax

where: a is any alpha char and x is any 0 to 7 A/N char string.

The list will be stored in a PS dataset named: yrTSOid.ax.datasets
To save PDS member lists do the same, changing "datasets" to "members".
Back to top
View user's profile Send private message
vamskrish
Warnings : 1

New User


Joined: 31 Jan 2007
Posts: 27
Location: virginia

PostPosted: Wed Jan 16, 2008 11:04 pm
Reply with quote

thanks all, 'SAVE AX' worked.
Back to top
View user's profile Send private message
vishabus

New User


Joined: 25 Oct 2006
Posts: 24
Location: India

PostPosted: Tue May 27, 2008 1:58 pm
Reply with quote

Hi,

Can we do this in batch? We need to have a batch job which needs the member list for a given dataset and no manual intervention is required.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue May 27, 2008 2:00 pm
Reply with quote

You can use the ISPF service LMMLIST/LMDLIST with OPTION(SAVE) in batch.

O.
Back to top
View user's profile Send private message
vishabus

New User


Joined: 25 Oct 2006
Posts: 24
Location: India

PostPosted: Tue May 27, 2008 2:34 pm
Reply with quote

It seems we don't have this facility at our site icon_sad.gif

Any alternatives ??
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Tue May 27, 2008 3:31 pm
Reply with quote

Quote:
It seems we don't have this facility at our site


odd, if You have ispf then You can write a rexx using the ispf services...
LMMLIST and friends are not ready made things
are just services to be invoked by a ... script ( rexx,clist) or a program
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Tue May 27, 2008 6:25 pm
Reply with quote

By the way if you need a list starting with
Quote:
A.S*.*
as asked in very first post, might be you can use IDCAMS in batch. I assume "A" is HLQ here.
Back to top
View user's profile Send private message
ramangouda patil

New User


Joined: 09 Apr 2008
Posts: 39
Location: India

PostPosted: Mon Nov 01, 2010 9:24 pm
Reply with quote

I am unable to view the dataset list after I try to save using on command line 'SAVE A4'. There are no datasets with my HLQ (Raman.A4.DATASETS). Help please!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Mon Nov 01, 2010 9:26 pm
Reply with quote

after the save hit PF1 two times!
the help messages will tell the exact name of the dataset
Back to top
View user's profile Send private message
ramangouda patil

New User


Joined: 09 Apr 2008
Posts: 39
Location: India

PostPosted: Mon Nov 01, 2010 9:30 pm
Reply with quote

Thanks enrico! there was another HLQ being appended in the saved dataset name.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2594
Location: Silicon Valley

PostPosted: Tue Nov 02, 2010 9:08 am
Reply with quote

The original instructions were:
Quote:
The list will be stored in a PS dataset named: yrTSOid.ax.datasets


But more correctly, it should say 'yourprefix':
Quote:
The list will be stored in a PS dataset named: yrPrefix.ax.datasets


Very frequently, the userid is used as the prefix, but you can choose a different prefix if you want. Use the PROFILE command. From the ISPF command line:
Code:
TSO PROFILE
to see your prefix.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
No new posts Reading Empty Dataset DFSORT/ICETOOL 5
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
No new posts SPOOL to Mainframe dataset in batch mode JCL & VSAM 7
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top