Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to Save a listdatasets into a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Bandita Bahubalendra

New User


Joined: 08 May 2008
Posts: 15
Location: Bangalore

PostPosted: Wed May 20, 2009 11:29 am    Post subject: How to Save a listdatasets into a dataset
Reply with quote

Hi All,

I am running a Rexx to save the dslist onto a dataset.

I tried executing the below code to save the dslist onto a dataset 'userid.OUT'. I am getting RC=0 but i have no data present in this dataset though there are datasets which starts with R* when i browse 3.4 in ISPF. Can anyone help me on this.

000001 /* REXX */
000002 ADDRESS ISPEXEC,
000003 "LMDINIT LISTID(IDV) LEVEL(R*)"
000004 ADDRESS ISPEXEC,
000005 "LMDLIST LISTID("IDV") OPTION(SAVE) STATS(NO) GROUP('OUT')"
00006 ADDRESS ISPEXEC
000007 "LMDLIST LISTID("IDV") OPTION(FREE)"[/img]
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed May 20, 2009 12:09 pm    Post subject:
Reply with quote

Take the quotes away from OUT in the group parameter
Back to top
View user's profile Send private message
Bandita Bahubalendra

New User


Joined: 08 May 2008
Posts: 15
Location: Bangalore

PostPosted: Wed May 20, 2009 12:19 pm    Post subject: Reply to: How to Save a listdatasets into a dataset
Reply with quote

Wow ! and its working .

Thanks a million
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed May 20, 2009 11:03 pm    Post subject:
Reply with quote

Now try to understand why the quotes were not in place...so you'll remember it for the next time.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us