MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PDS names in the PS file needs to be Compressed

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
mainframemouli
Beginner


Joined: 23 Feb 2005
Posts: 87
Topics: 33

PostPosted: Tue Apr 18, 2006 11:44 am    Post subject: PDS names in the PS file needs to be Compressed Reply with quote

I have a File that contains , some 450 records.
All the Records are nothing but the name of a PDS.
I need to Write a program to using INTRDR to read this file and get all the PDS names and submit the jcl that compresses the PDS name that has been read.

Is there anyother easiest method by which the same can be achieved?????
(ie) other than writting a program.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Tue Apr 18, 2006 12:51 pm    Post subject: Reply with quote

mainframemouli,


The following JCL will give you the desired results. upon completion check the output from step0200. If the generated JCL looks good then change the following statement
Code:

//SORTOUT  DD SYSOUT=*               

to
Code:

//SORTOUT  DD SYSOUT=(*,INTRDR)               



Code:

//STEP0100 EXEC PGM=SORT           
//SYSOUT   DD SYSOUT=*             
//SORTIN   DD *                   
your.pds.name1
your.pds.name2
your.pds.name3
//DDLIST   DD DSN=&T1,DISP=(,PASS),SPACE=(CYL,(1,1),RLSE) 
//CTLLIST  DD DSN=&T2,DISP=(,PASS),SPACE=(CYL,(1,1),RLSE) 
//SYSIN    DD *                                           
 SORT FIELDS=COPY                                         
 OUTFIL FNAMES=DDLIST,                                     
 OUTREC=(C'//IDD',SEQNUM,5,ZD,C' DD DISP=SHR,DSN=',1,44,/,
         C'//ODD',SEQNUM,5,ZD,C' DD DISP=SHR,DSN=',1,44,/,
         C'//*',80:X)                                     
                                                           
                                                           
 OUTFIL FNAMES=CTLLIST,                                   
 OUTREC=(3X,C'COPY OUTDD=ODD',SEQNUM,5,ZD,C',INDD=IDD',   
         SEQNUM,5,ZD,80:X)                                 
                                                           
/*                                                         
//STEP0200 EXEC  PGM=SORT             
//SYSOUT   DD SYSOUT=*               
//SYSIN    DD *                       
  SORT FIELDS=COPY                   
//SORTOUT  DD SYSOUT=*               
//SORTIN   DD DATA,DLM=$$             
//TIDXXXXA JOB 'COMPRESS',           
//             CLASS=A,               
//             MSGCLASS=Y,           
//             MSGLEVEL=(1,1),       
//             NOTIFY=&SYSUID         
//*                                   
//STEP0100 EXEC  PGM=IEBCOPY         
//SYSPRINT DD SYSOUT=*               
//SYSIN    DD *                       
$$                                   
//         DD DSN=&T2,DISP=(OLD,PASS)
//         DD DSN=&T1,DISP=(OLD,PASS)
/*                                   


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group