I need some help with an assignment That i have to work on.
I am trying to execute a 4 step job. I want to create a file on disk, print the records, then i must append more records to the file, and then finally print the file again with the new reocrds that I added in the previous step.
Here's my original code
//Y111 JOB SC064502,
// CLASS=A,
// MSGCLASS=X
//*
//*-------------------------------------------------------------------*//
//* *//
//* CREATE STEP 1 *//
//* *//
//*-------------------------------------------------------------------*//
//*
//CREATE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSUT2 DD DSN=MYFILE,
// DISP=(NEW,PASS),
// UNIT=SYSDA,
// SPACE=(TRK,1),
// DCB=(LRECL=80,RECFM=F,BLKSIZE=80)
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *
Steve Nash
Shawn Marion
Tyrus Thomas
LeBron James
Tim Duncan
/*
//*
//*-------------------------------------------------------------------*//
//* *//
//* PRINT STEP 2 *//
//* *//
//*-------------------------------------------------------------------*//
//*
//PRINT EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=*
//SYSUT1 DD DSN=MYFILE,
// DISP=(OLD,KEEP)
//*
//*-------------------------------------------------------------------*//
//* *//
//* ADDMORE STEP 3 *//
//* *//
//*-------------------------------------------------------------------*//
//*
//ADDMORE EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD *
David West
Yao Ming
Dwayne Wade
Jason Kidd
Richard Hamilton
/*
//SYSUT2 DD DSN=MYFILE,
// DISP=(MOD,PASS)
//*
//*-------------------------------------------------------------------*//
//* *//
//* PRINT2 STEP 4 *//
//* *//
//*-------------------------------------------------------------------*//
//*
//PRINT2 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=*
//SYSUT1 DD DSN=MYFILE,
// DISP=(OLD,DELETE)
//
// CLASS=A,
// MSGCLASS=X
//*
//*-------------------------------------------------------------------*//
//* *//
//* CREATE STEP 1 *//
//* *//
//*-------------------------------------------------------------------*//
//*
//CREATE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSUT2 DD DSN=MYFILE,
// DISP=(NEW,PASS),
// UNIT=SYSDA,
// SPACE=(TRK,1),
// DCB=(LRECL=80,RECFM=F,BLKSIZE=80)
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *
Steve Nash
Shawn Marion
Tyrus Thomas
LeBron James
Tim Duncan
/*
//*
//*-------------------------------------------------------------------*//
//* *//
//* PRINT STEP 2 *//
//* *//
//*-------------------------------------------------------------------*//
//*
//PRINT EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=*
//SYSUT1 DD DSN=MYFILE,
// DISP=(OLD,KEEP)
//*
//*-------------------------------------------------------------------*//
//* *//
//* ADDMORE STEP 3 *//
//* *//
//*-------------------------------------------------------------------*//
//*
//ADDMORE EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD *
David West
Yao Ming
Dwayne Wade
Jason Kidd
Richard Hamilton
/*
//SYSUT2 DD DSN=MYFILE,
// DISP=(MOD,PASS)
//*
//*-------------------------------------------------------------------*//
//* *//
//* PRINT2 STEP 4 *//
//* *//
//*-------------------------------------------------------------------*//
//*
//PRINT2 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=*
//SYSUT1 DD DSN=MYFILE,
// DISP=(OLD,DELETE)
//
But then I reiceve many errors like this from when I run it..
ICH70001I Y11 LAST ACCESS AT 14:49:35 ON MONDAY, FEBRUARY 18, 2008
ICH408I USER(Y11 ) GROUP(ACADGRP ) NAME(ACADEMIC BATCH USER )
MYFILE CL(DATASET ) VOL(STRG01)
DEFINE - WARNING: RESOURCE NOT PROTECTED
ICH408I USER(Y11 ) GROUP(ACADGRP ) NAME(ACADEMIC BATCH USER )
MYFILE CL(DATASET ) VOL(STRG03)
DEFINE - WARNING: RESOURCE NOT PROTECTED
ICH408I USER(Y11 ) GROUP(ACADGRP ) NAME(ACADEMIC BATCH USER )
MYFILE CL(DATASET ) VOL(STRG02)
DEFINE - WARNING: RESOURCE NOT PROTECTED
IEF253I Y111 CREATE SYSUT2 - DUPLICATE NAME ON DIRECT ACCESS VOLUME
IGD17001I DUPLICATE DATA SET NAME ON VOLUME STRG01
FOR DATA SET MYFILE
IGD17001I DUPLICATE DATA SET NAME ON VOLUME STRG03
FOR DATA SET MYFILE
IGD17001I DUPLICATE DATA SET NAME ON VOLUME STRG02
FOR DATA SET MYFILE
IEF272I Y111 CREATE - STEP WAS NOT EXECUTED.
ICH408I USER(Y11 ) GROUP(ACADGRP ) NAME(ACADEMIC BATCH USER )
MYFILE CL(DATASET ) VOL(STRG01)
DEFINE - WARNING: RESOURCE NOT PROTECTED
ICH408I USER(Y11 ) GROUP(ACADGRP ) NAME(ACADEMIC BATCH USER )
MYFILE CL(DATASET ) VOL(STRG03)
DEFINE - WARNING: RESOURCE NOT PROTECTED
ICH408I USER(Y11 ) GROUP(ACADGRP ) NAME(ACADEMIC BATCH USER )
MYFILE CL(DATASET ) VOL(STRG02)
DEFINE - WARNING: RESOURCE NOT PROTECTED
IEF253I Y111 CREATE SYSUT2 - DUPLICATE NAME ON DIRECT ACCESS VOLUME
IGD17001I DUPLICATE DATA SET NAME ON VOLUME STRG01
FOR DATA SET MYFILE
IGD17001I DUPLICATE DATA SET NAME ON VOLUME STRG03
FOR DATA SET MYFILE
IGD17001I DUPLICATE DATA SET NAME ON VOLUME STRG02
FOR DATA SET MYFILE
IEF272I Y111 CREATE - STEP WAS NOT EXECUTED.
I'm assuming I made an error the first time i attempted to run this, and that is what is giving me the data set duplication error.
Please help, and thanks so much - Justin