Hi Steve & Scherrer,
Thanks a lot for your reply.
As advised, I'm posting the JCL and the input files. Only GDG version is created through JCL and not the PS file.
GDG File
------------------------------------------------------------------------------
000002 XZEE940024 , , , ,
CECCFFFFFF44444464444444444444644444444444446444444444444464444444444444
2355940024000000B0000000000000B0000000000000B0000000000000B0000000000000
------------------------------------------------------------------------------
000003 XZEE940033 , , , ,
CECCFFFFFF44444464444444444444644444444444446444444444444464444444444444
2355940033000000B0000000000000B0000000000000B0000000000000B0000000000000
------------------------------------------------------------------------------
000004 XZ/BM400335/A , , , ,
CE6CDFFFFFF6C44464444444444444644444444444446444444444444464444444444444
2312440033511000B0000000000000B0000000000000B0000000000000B0000000000000
------------------------------------------------------------------------------
PS File
------------------------------------------------------------------------------
000200 XZEE940024 , , , ,
CECCFFFFFF44444464444444444444644444444444446444444444444464444444444444
2355940024000000B0000000000000B0000000000000B0000000000000B0000000000000
------------------------------------------------------------------------------
000300 XZEE940033 , , , ,
CECCFFFFFF44444464444444444444644444444444446444444444444464444444444444
2355940033000000B0000000000000B0000000000000B0000000000000B0000000000000
------------------------------------------------------------------------------
000400 XZ/BM400335/A , , , ,
CE6CDFFFFFF6C44464444444444444644444444444446444444444444464444444444444
2312440033511000B0000000000000B0000000000000B0000000000000B0000000000000
JCL
//SPRNT62R JOB A1000000,'PROG 02',
// NOTIFY=&SYSUID,
// MSGLEVEL=(1,1),MSGCLASS=Q,
// REGION=4999K,
// CLASS=A
/*
/*JOBPARM LINES=9999
//**********************************************************************
//STEP010 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
LISTCAT ENT('PHOBOS1.TR2.TXT')
IF MAXCC=0 THEN SET MAXCC=0
IF MAXCC=4 THEN SET MAXCC=3
/*
//**********************************************************************
//SORTCOPY EXEC PGM=ICEMAN,COND=(0,NE,STEP010)
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=PHOBOS1.SPRINT4.TXT,DISP=SHR
//SORTOUT DD DSN=PHOBOS1.R1100.TXT.BACKUP(+1),
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,SPACE=(CYL,(20,50),RLSE),
// DCB=(BLKSIZE=6233,RECFM=VB,DSORG=PS,LRECL=256)
//SYSIN DD *
OPTION COPY
/*
//*
//**********************************************************************
//SORTVTOF EXEC PGM=ICEMAN,COND=(0,NE,STEP010)
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=PHOBOS1.R1100.TXT.BACKUP(+1),DISP=SHR
//SORTOUT DD DSN=PHOBOS1.R1100.INPUT(+1),
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,SPACE=(CYL,(20,50),RLSE),
// DCB=(BLKSIZE=800,RECFM=FB,DSORG=PS,LRECL=80)
//SYSIN DD *
OPTION COPY
OUTFIL VTOF,BUILD=(5,80)
/*
//*
//* THIS GDG VERSION DOES RETURNED +100 FOR EVERY SQLCODE
//**********************************************************************
//GDGFILE1 EXEC PGM=IKJEFT01,COND=(0,NE,STEP010)
//STEPLIB DD DSN=SYSD0.DB2.DSN2.SDSNLOAD,DISP=SHR
// DD DSN=SYSD0.DB2.DSN2.SDSNEXIT,DISP=SHR
//SYSPRINT DD SYSOUT=Q
//SYSDBOUT DD SYSOUT=Q
//SYSUDUMP DD SYSOUT=Q
//ABNLDUMP DD SYSOUT=Q
//ABNLHELP DD SYSOUT=Q
//ABNLALL DD SYSOUT=Q
//ABNLWSPT DD SYSOUT=Q
//SYSPUNCH DD SYSOUT=Q
//SYSOUT DD SYSOUT=Q
//SYSTSPRT DD SYSOUT=Q
//VIOCTL DD DSN=ACTIVATE,DISP=SHR,VOL=REF=SYS1.LINKLIB,AMP='AMORG'
//R11S41 DD DSN=PHOBOS1.R1100.INPUT(+1),DISP=SHR
//R11SOP1 DD DSN=PHOBOS1.R1100.REPORT(+1),
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,SPACE=(CYL,(20,50),RLSE),
// DCB=(BLKSIZE=800,RECFM=FB,DSORG=PS,LRECL=80)
//SYSTSIN DD *
DSN SYSTEM (DSN2)
RUN PROG (QWERTV08) -
PLAN (QWERT304) -
LIB ('HOBOSC2.BATCH.LOAD')
END
/*
//* THIS PS FILE DOES RETURNED EXPECTED OUTPUT
//**********************************************************************
//PSFILE02 EXEC PGM=IKJEFT01,COND=(0,NE,STEP010)
//STEPLIB DD DSN=SYSD0.DB2.DSN2.SDSNLOAD,DISP=SHR
// DD DSN=SYSD0.DB2.DSN2.SDSNEXIT,DISP=SHR
//SYSPRINT DD SYSOUT=Q
//SYSDBOUT DD SYSOUT=Q
//SYSUDUMP DD SYSOUT=Q
//ABNLDUMP DD SYSOUT=Q
//ABNLHELP DD SYSOUT=Q
//ABNLALL DD SYSOUT=Q
//ABNLWSPT DD SYSOUT=Q
//SYSPUNCH DD SYSOUT=Q
//SYSOUT DD SYSOUT=Q
//SYSTSPRT DD SYSOUT=Q
//VIOCTL DD DSN=ACTIVATE,DISP=SHR,VOL=REF=SYS1.LINKLIB,AMP='AMORG'
//R11S41 DD DSN=PHOBOS1.LOGS.TXT,DISP=SHR
//R11SOP1 DD DSN=PHOBOS1.LOGS.REPORT,DISP=SHR
//SYSTSIN DD *
DSN SYSTEM (DSN2)
RUN PROG (QWERTV08) -
PLAN (QWERT304) -
LIB ('HOBOSC2.BATCH.LOAD')
END
/*
The contents of the PS file and GDG file are also same along with the file parameters.
Kinldy let me know in case if you require further information on this.
Many thanks in advance.
Regards,
Praelay.