View previous topic :: View next topic
|
Author |
Message |
S0C7
New User
Joined: 19 May 2006 Posts: 26
|
|
|
|
Hi,
I have lots of modules in a PDS and I need to get all of the member names in that PDS out on an excel sheet. I need just the module names and thats it.
Any ideas on how I can get this quickly without manually copy pasting each item on my sheet?
Thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
By whatever means you prefer, create a list of member names - writing the list to a disk file rather than the screen or a sysout. Edit the file to discard any unneeded info.
FTP the file from the mainframe to your desktop system. Import the file into excel and then you have the members in a spreadsheet. |
|
Back to top |
|
|
S0C7
New User
Joined: 19 May 2006 Posts: 26
|
|
|
|
dick scherrer wrote: |
Hello,
By whatever means you prefer, create a list of member names - writing the list to a disk file rather than the screen or a sysout. Edit the file to discard any unneeded info.
FTP the file from the mainframe to your desktop system. Import the file into excel and then you have the members in a spreadsheet. |
I don't get it. How do I discard the unneeded info. Do you mean copy the entire PDS into a flat file? But that flat file will have all rows from all the members... I just need member names from the PDS.
Please describe in full detail. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
kranthikumarb
Active User
Joined: 02 Jan 2009 Posts: 115 Location: Hyderabad
|
|
|
|
Hi SOC7 ,
Open the dataset and give the following command.
"Save <2nd level qualifier>"
All the members along with their attributes will be copied into a member.
The member name would be
<your user id>.<2nd lever qualifier>.members
I think now you can FTP into an EXCEL sheet.
Hope this helps. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
FTP from your PC to the mainframe, piping output to a file. Sign on as usual. Issue the FTP commands:
Code: |
cd 'pds.name'
dir
quit
|
Your file will have all member names in the PDS -- when you set the current directory to a PDS name, the dir cocmmand lists all members in the PDS. |
|
Back to top |
|
|
|