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 

Convert a Partitioned(PDS) file to Sequential(PS) file.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
kmkarth
Beginner


Joined: 02 Dec 2002
Posts: 5
Topics: 3
Location: India

PostPosted: Tue Dec 03, 2002 11:33 am    Post subject: Convert a Partitioned(PDS) file to Sequential(PS) file. Reply with quote

Code:

//STEP01 EXEC PGM=IEBPTPCH                     
//SYSUT1  DD DSN=INPUT.PDS,         
//           DISP=SHR                         
//SYSUT2  DD DSN=&&UNLOAD1,                   
//           DISP=(,PASS),UNIT=SYSDA,         
//           SPACE=(TRK,(100,10),RLSE),       
//           DCB=(RECFM=FB,LRECL=81,BLKSIZE=0)
//SYSIN    DD *                               
  PUNCH TYPORG=PO                             
/*                                             
//SYSPRINT DD SYSOUT=*                         
//*--------------------------------------------
//STEP02 EXEC PGM=IEBGENER                     
//SYSUT1  DD DSN=&&UNLOAD1,                   
//           DISP=(OLD,DELETE)                 
//SYSUT2  DD DSN=OUTPUT.PS,     
//           DISP=(NEW,CATLG),                 
//           DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),
//           UNIT=SYSDA,                       
//           SPACE=(TRK,(100,10),RLSE)         
//SYSIN   DD *                                 
  GENERATE MAXFLDS=1                           
  RECORD FIELD=(80,2,,1)                       
/*                                             
//SYSPRINT DD SYSOUT=*                         
//                                                                 


Thanks,
Karthik
Back to top
View user's profile Send private message
Nila
Beginner


Joined: 26 Dec 2002
Posts: 20
Topics: 8
Location: Chennai, India

PostPosted: Thu Dec 26, 2002 7:53 am    Post subject: Reply with quote

Hi hope this REXX code also fulfill the requirement.

[code:1:4d06becbf5]
//**********JOB CARD*************//
//STEP EXEC PGM=IEBUPDTE,PARM=NEW
//SYSPRINT DD SYSOUT=*
//SYSIN DD DISP=SHR,DSN=userid.seqfile.expds
//SYSUT2 DD DISP=SHR,DSN=your.output.pds
REXX
/* -------------------- REXX ** ------------------- */
/* Syntax for expds: */
/* %expds hlq.pdsname off */
/* ------------------------------------------------ */
ARG libparm ver
IF ver = ON THEN
TRACE ALL
user = USERID()
temp_grc = "
_________________
Cheers Nila..
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities 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