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

REXX- compressing a PDS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu May 18, 2006 6:52 pm
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
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

Global Moderator


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

PostPosted: Sat May 20, 2006 1:46 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:

Back to Top