7.3 RAWSTAPE (Reverse AWSTAPE utility)
The  RAWSTAPE  program  is  written  by  Jan  Jaeger  and  is  available  on  the  CBT  MVS  Utilities  Tape  
(CBTTAPE)  at  
7.3.1 Function
The  RAWSTAPE  utility  converts  an  AWSTAPE  file  back  to  a  blocked  OS  dataset  such  that  the  original  
blocking  is  restored.  As  an  AWSTAPE  file  does  not  contain  DCB  parameters  this  utility  will  not  restore  the  
original  DCB  parameters,  these  will  have  to  be  added  manually  with  a  utility  such  as  IEBGENER.  
Upload  the  AWSTAPE  file  to  OS/390  or  z/OS  in  binary  format,  do  not  use  CR/LF  or  any  other  blocking  
feature  when  doing  the  file  transfer.  The  file  must  be  uploaded  to  a  RECFM=U  dataset,  either  prealloca-  
ted  or  allocated  using  IND$FILE.  BLKSIZE=4096  is  reasonable  but  any  other  blocksize  will  work  also.  
An  AWS  tape  file  can  consist  of  more  than  1  file  and  as  such  the  file  number  of  the  tape  must  be  speci-  
fied.  This  file  number  is  equal  to  the  value  used  when  reading  a  tape  with  bypass  label  processing  (BLP).  
Thus,  on  a  labeled  tape  file  1  will  always  be  the  VOL1  record.  
Run  RAWSTAPE  with  SYSUT1  pointing  to  AWS  input  file  and  SYSUT2  to  the  output  file,  for  example  
copying  a  standalone  dump  tape.  
7.3.2 Examples
The following example copies an AWS tape format dataset back to a blocked OS dataset:
//CONVERT EXEC PGM=RAWSTAPE,PARM=3
//STEPLIB DD DSN=IBMUSER.LOAD,DISP=SHR
//SYSUDUMP DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=IBMUSER.SADUMP.AWS
//SYSUT2 DD DSN=IBMUSER.SADUMP,DISP=(NEW,CATLG),
// UNIT=SYSALLDA,SPACE=(TRK,1200,RLSE)
Figure 64: RAWSTAPE utility JCL
After  the  previous  example  the  IBMUSER.SADUMP  contains  the  correct  data  but  still  has  invalid  DCB  
parameters  in  the  DSCB,  these  can  be  corrected  with  IEBGENER  as  following:  
//SETDCB EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DUMMY,DCB=(DSORG=PS,RECFM=FBS,LRECL=4160,BLKSIZE=29120)
//SYSUT2 DD DISP=MOD,DCB=(*.SYSUT1),DSN=IBMUSER.SADUMP
Figure 65: IEBGENER JCL for RAWSTAPE utility

























































































































































