Does REPRO perform an append to a dataset?

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Atul Mithbhavkar
New Member
Posts: 6
Joined: Sun Feb 09, 2014 12:38 pm

Does REPRO perform an append to a dataset?

Post 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
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Does REPRO perform an append to a dataset?

Post 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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Does REPRO perform an append to a dataset?

Post 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 ...!?
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Atul Mithbhavkar
New Member
Posts: 6
Joined: Sun Feb 09, 2014 12:38 pm

Re: Does REPRO perform an append to a dataset?

Post by Atul Mithbhavkar »

Yes, I'm using IDCAMS under TSO and not in batch as enrico has showed. Will that makea difference?
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”