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
 
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: 4650
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: 4650
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
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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