Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
This topic is locked: you cannot edit posts or make replies. How to save expanded jcl's into one l... enrico-sorichetti CLIST & REXX 13 Thu Jul 27, 2017 2:45 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us