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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 5 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


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