Page 1 of 1

Does REPRO perform an append to a dataset?

Posted: Mon Jun 02, 2014 5:31 pm
by Atul Mithbhavkar
Hi,

I'm trying to understand that, if REPRO perform an append to a dataset, in case the ALLOC statement has a MOD? Or should I use IEBGENER?

I verified for all non-VSAM datasets and it is working fine that is there are no error messages. However, when I check to see if the second append to a dataset worked, it looks like the dataset was overridden, rather than appended to. :o

Re: Does REPRO perform an append to a dataset?

Posted: Mon Jun 02, 2014 6:38 pm
by enrico-sorichetti
tested with

Code: Select all

 ****** ***************************** Top of Data ******************************
 - - -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  2 Line(s) not Displayed
 000003 //AMS     EXEC PGM=IDCAMS,REGION=0M,COND=(0,NE)
 000004 //SYSPRINT  DD SYSOUT=*
 000005 //SYSIN     DD *
 000006   REPRO OUTFILE(TEST) INFILE(FIRST)
 000007   REPRO OUTFILE(TEST) INFILE(SECND)
 000008 //TEST      DD DISP=MOD,DSN=ENRICO.MFTEST.PS
 000009 //FIRST     DD *
 000010 FIRST
 000011 //SECND     DD *
 000012 SECND
 ****** **************************** Bottom of Data ****************************
submitted THREE times to get

Code: Select all

  VIEW       ENRICO.MFTEST.PS                                Columns 00001 00072
 Command ===>                                                  Scroll ===> CSR
 ****** ***************************** Top of Data ******************************
 000001 FIRST
 000002 SECND
 000003 FIRST
 000004 SECND
 000005 FIRST
 000006 SECND
 ****** **************************** Bottom of Data ****************************
obviously the first submit with an empty output

now the ball is into Your court for researching :geek:
it worked even with more than ONE repro in a single idcams execution

Re: Does REPRO perform an append to a dataset?

Posted: Mon Jun 02, 2014 6:55 pm
by Anuj Dhawan
The question is in TSO Part of the Forum, I've not tested it to be sure however ,I think it might be to do with using REPRO in TSO ...!?

Re: Does REPRO perform an append to a dataset?

Posted: Tue Sep 09, 2014 12:13 pm
by Atul Mithbhavkar
Yes, I'm using IDCAMS under TSO and not in batch as enrico has showed. Will that makea difference?