IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

anyone can explain about REPRO


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kannag

New User


Joined: 02 Aug 2006
Posts: 23
Location: chennai

PostPosted: Thu Aug 10, 2006 5:10 pm
Reply with quote

hi all,
anyone can explain about repro with example.
Back to top
View user's profile Send private message
sihanature
Warnings : 1

New User


Joined: 01 Sep 2005
Posts: 33

PostPosted: Thu Aug 10, 2006 7:14 pm
Reply with quote

Hi

Repro is basically a Copy command ,which is used to copy the data from one PS to another with help of IDCAMS

Here is the Example.

//IDCAM1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//DDIN DD DSN='XXXX.XXXX.XXX1',DISP=SHR
//DDOUT DD DSN='XXXX.XXXX.XXX2',DISP=SHR
//SYSIN DD *
REPRO INFILE(DDIN) OUTFILE(DDOUT)
/*
//
Hope you understood the concept of REPRO.

Thanks
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Aug 11, 2006 1:29 am
Reply with quote

The REPRO command is well documented in the fine manual.

O.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Fri Aug 11, 2006 11:11 am
Reply with quote

Hi kannag,

If you need to copy a PS to other. Similar to save as in Windows. We have a command REPRO for doing this.

We use the utility IDCAMS for this.

Simple way, is to give the PS to be copied in INDD and the ouput PS in OUTDD. Even multiple repro can be done using a single JCL by having INDD1,INDD2... to OUTDD1,OUTDD2...

You can use the above code to perform this.

If you still need more info, do come up with your doubts.

Regards,
Diwakar.D

------------------------------------------------
Nobody is perfect. I am Nobody
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts DB2 Statistics - Using EXPLAIN and qu... DB2 1
No new posts how to keep unpaired records with REPRO. JCL & VSAM 9
No new posts IDCAMS Allocate & Repro JCL & VSAM 9
No new posts dataset copy question - REPRO or some... TSO/ISPF 2
No new posts Can someone explain me this JCL line ... JCL & VSAM 9
Search our Forums:

Back to Top