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

How to Save a listdatasets into a dataset


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Wed May 20, 2009 12:09 pm
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
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: 2358
Location: Israel

PostPosted: Wed May 20, 2009 11:03 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
Search our Forums:

Back to Top