View previous topic :: View next topic
|
Author |
Message |
DKartiya
New User
Joined: 30 Jan 2008 Posts: 26 Location: Chennai
|
|
|
|
Hi,
I was trying to use REPRO command in IDCAMs for copying datasets.
REPRO INDATASET('ABCD.ABC1') -
OUTDATASET('ABCD.ABC2')
I get the ff error
DATA SET NOT FOUND IN CATALOG
DSN = "HMEAT.HMAPC.HM1000.DEEP "
Does that mean that the output file that i am using in REPRO should be
catalogued / allocated before using it ???
Regards,
Karthi |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
yes! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
And here was I wondering why if you were using dataset 'ABCD.ABC2' as output, why on earth you would get an error on dataset "HMEAT.HMAPC.HM1000.DEEP "
Please ensure that information posted in pursuit of a solution to your problem is accurate and really does reflect the problem in hand. |
|
Back to top |
|
|
jaspal
New User
Joined: 22 May 2007 Posts: 68 Location: mumbai
|
|
|
|
Hi DKartiya,
Repro is used to copy a records from Flat file to VSAM.
it is pretty much clear if you won't have input file to be copied into output file then how can a job complete successfuly.
Code: |
//STEP010 EXEC PGM=IDCAMS, REGION=512K
//*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//*
//OSEQFIL1 DD DSN=F1.SEQ.FILE,
// DISP=SHR
//*
//XVSMFIL1 DD DSN=F1.VSAM.FILE,
// DISP=OLD
//*
//SYSIN DD *
REPRO INFILE (OSEQFIL1) OUTFILE (XVSMFIL1)
/* |
Here : OSEQFIL1 is input flat file or GDG version or base
XVSMFIL1 is ouput file i.e ( VSAM :it should be allocated)
I think you are from APCD.
Thanks,
Jaspal
Edited by expat to remove telephone number |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
Repro is used to copy a records from Flat file to VSAM. |
And also VSAM to flat, VSAM to VSAM, flat to flat. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
jaspal wrote: |
Repro is used to copy a records from Flat file to VSAM.
|
Kind of half truth..You can use the REPRO command of IDCAMS to copy VSAM and non-VSAM data sets, VSAM clusters, and alternate indexes. You cannot use REPRO to copy an entire partitioned data set (PDS) because REPRO does not copy the information in the directories. You can, however, use REPRO to copy individual members. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
ah..Expat you seem to deal in fast cars these days...
Quote: |
I think you are from APCD. |
How about me.. ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
ah..Expat you seem to deal in fast cars these days... |
No, just drive them |
|
Back to top |
|
|
jaspal
New User
Joined: 22 May 2007 Posts: 68 Location: mumbai
|
|
|
|
Hi Expat / Anuj,
Thanks for adding your valuable points.
Thanks,
Jaspal |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
You're welcome... |
|
Back to top |
|
|
|