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
 

 

REXX- compressing a PDS

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

New User


Joined: 18 Apr 2006
Posts: 22

PostPosted: Thu May 18, 2006 6:49 pm    Post subject: REXX- compressing a PDS
Reply with quote

hi,


i want to compress a PDS in REXX .
what macro/function/command can i use for this.



thanks,
kalai
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu May 18, 2006 6:52 pm    Post subject: Re: REXX- compressing a PDS
Reply with quote

Use the LMCOMP ISPF Library Management service. Otherwise, run a normal IEBCOPY COMPRESS.
Back to top
View user's profile Send private message
kalais

New User


Joined: 18 Apr 2006
Posts: 22

PostPosted: Fri May 19, 2006 2:08 pm    Post subject: code for compresssing PDS in REXX
Reply with quote

hi


i tried to compress the PDS with the following code



/* REXX */
"ISPEXEC LMINIT DATAID(ID) DATASET('PDS') ENQ(EXCLU)"

"ISPEXEC LMCOMP DATAID(ID)"
"FREE DS('PDS')"


But the pds did not get compressed.
Is the above code is valid for the compression?
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Sat May 20, 2006 1:46 am    Post subject: Re: REXX- compressing a PDS
Reply with quote

It worked for me when coded properly:

Code:

/* REXX */                                                   
"ISPEXEC LMINIT DATAID(ID) DATASET('PDS') ENQ(EXCLU)"     
"ISPEXEC LMCOMP DATAID("ID")"                               
"ISPEXEC LMFREE DATAID("ID")"                               
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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