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

RC12 While using IDCAMS REPRO for VSAM files


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
paramita

New User


Joined: 06 Mar 2005
Posts: 14
Location: Bangalore

PostPosted: Mon Aug 06, 2007 8:11 pm
Reply with quote

While using IDCAMS REPRO for VSAM files, I get RC12.

Please help me figure out the cause behind it.
Code:

//S1       EXEC  PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//VSAMCPY  DD DSN=®DATA..MRVS.BATCH.VSAMCPY(+1),
//         DISP=(,CATLG),
//         DCB=(SYS2.DSCB,RECFM=FB,LRECL=342),
//         STORCLAS=STANDARD,MGMTCLAS=MONTHNB,
//         SPACE=(CYL,(10,10),RLSE)
//SYSIN    DD  DSN=PRD00.BSAU.CONTROL(TVSR&RGN),DISP=SHR
//*
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Mon Aug 06, 2007 8:27 pm
Reply with quote

Superk wroi
Quote:
You gonna provide a copy of the JCL and SYSOUT output, or just leave us all to guess?


Where is the SYSOUT?Also in JCL there is no input file (or DUMMY) mentioned?
Can you please let us know the controlcard?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 06, 2007 8:53 pm
Reply with quote

Hello Paramita and welcome to the forums,

When you have a question, it is necessary to post the JCL, the control statements, and the diagnostic information provided by your system. Any other info that you believe could help us help you should be posted as well.

When posting this information, it is good to use the "Code" tab near the top of the Reply panel. Using "code" makes your post much more readable and lines things correctly (you won't have to try to fill with spaces for alignment icon_smile.gif ). Once you have enteret what you want to post, click Preview and you can see what you have created. When you are sitisfied that your post looks as you want it to, click Submit.
Back to top
View user's profile Send private message
paramita

New User


Joined: 06 Mar 2005
Posts: 14
Location: Bangalore

PostPosted: Tue Aug 07, 2007 3:33 pm
Reply with quote

Hi Dick,

Thanks for the welcome and thanks for explaining the rules to me. :-)
Back to top
View user's profile Send private message
paramita

New User


Joined: 06 Mar 2005
Posts: 14
Location: Bangalore

PostPosted: Tue Aug 07, 2007 3:38 pm
Reply with quote

Muthuvel,

The SYSIN is PRD00.BSAU.CONTROL(TVSRSO). This contains the following information: REPRO INDATASET(PRD69.SOAU.CLT.MRVS) OUTFILE(VSAMCPY) where PRD69.SOAU.CLT.MRVS is a VSAM file holding some records/data.

The SYSOUT is PRD19.SOAU.MRVS.BATCH.VSAMCPY which is a GDG.

I am trying to find out why in this step the IDCAMS REPRO function generated the return code of 12.

I checked and found that the data has been copied correctly from the input PRD69.SOAU.CLT.MRVS to the output PRD19.SOAU.MRVS.BATCH.VSAMCPY yet there was the RC12 in this step.
Back to top
View user's profile Send private message
0d311

Guest





PostPosted: Tue Aug 07, 2007 4:27 pm
Reply with quote

paramita wrote:
Muthuvel,
The SYSOUT is PRD19.SOAU.MRVS.BATCH.VSAMCPY which is a GDG.


This is a SYSOUT? icon_confused.gif and as stated in your control card, this is where you output your data. I'm getting confused here. And since this is a GDG, you are not copying to a VSAM file. I'm not sure but I think that a VSAM file can't be a GDG at the same time. icon_neutral.gif
Back to top
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 07, 2007 4:44 pm
Reply with quote

0d311

REPRO copies the VSAM file to a flat file or another VSAM file. The name of the output file is different from the name of the input cluster, so no problems there with any contention between the two names.

paramita

We need to see the output of your run to try and see what the problem is. Please post this.

REPRO is a funny beast, and I do not usually code any attributes for a REPRO output. I would have coded comething like,
Code:

//VSAMCPY  DD DSN=output dataset name,
//         DISP=(,CATLG,DELETE),
//         SPACE=(CYL,(10,10),RLSE)
Back to top
View user's profile Send private message
0d311

Guest





PostPosted: Tue Aug 07, 2007 4:48 pm
Reply with quote

Hi Expat,

You were right. I was really confused icon_lol.gif

I'm hanging. Brb. I need to reboot myself. icon_biggrin.gif
Back to top
hariibm

New User


Joined: 05 Feb 2007
Posts: 61
Location: Chennai

PostPosted: Tue Aug 07, 2007 4:50 pm
Reply with quote

Paramita,

If PRD19.SOAU.MRVS.BATCH.VSAMCPY is the output dataset, then what is PRD69.SOAU.CLT.MRVS??

Both output file and SYSOUT referring to same dataset?? I am confused with this. Please explain again.

Hari.
Back to top
View user's profile Send private message
paramita

New User


Joined: 06 Mar 2005
Posts: 14
Location: Bangalore

PostPosted: Tue Aug 07, 2007 5:08 pm
Reply with quote

Hi Expat,

Did you want me to post this?

Code:
//SYSPRINT DD SYSOUT=*
//VSAMCPY  DD DSN=& REGDATA..MRVS.BATCH.VSAMCPY(+1),
//         DISP=(,CATLG),
//         DCB=(SYS2.DSCB,RECFM=FB,LRECL=342),
//         STORCLAS=STANDARD,MGMTCLAS=MONTHNB,
//         SPACE=(CYL,(10,10),RLSE)
Back to top
View user's profile Send private message
0d311

Guest





PostPosted: Tue Aug 07, 2007 5:12 pm
Reply with quote

Hi Paramita,

I think Expat wants you to try your REPRO job without specifying the DCB attributes of VSAMCPY and see if it works.
Back to top
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 07, 2007 5:13 pm
Reply with quote

Quote:
Both output file and SYSOUT referring to same dataset?? I am confused with this. Please explain again.

I think that may be a typo.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 07, 2007 5:59 pm
Reply with quote

If you would all take the time to read his jcl, he is just copying a vsam to qsam gdg. he is getting an RC=12 because some attribute was allocated but not used - since he is getting output.

be interesting to have a listcat of the vsam PRD69.SOAU.CLT.MRVS
and know how SYS2.DSCB resolves as dcb parms. a quick guess is that SYS2.DSCB has a RECFM or LRECL and his jcl overrides this. (but that is just a guess. probably using that for a blocksize = 0, who know???)
Quote:

DCB=(SYS2.DSCB,RECFM=FB,LRECL=342)
Back to top
View user's profile Send private message
paramita

New User


Joined: 06 Mar 2005
Posts: 14
Location: Bangalore

PostPosted: Tue Aug 07, 2007 6:22 pm
Reply with quote

Hi dbz,

Yes, you are correct. I am trying to copy a VSAM to QSAM GDG.

There is in fact a LISTCAT just before this step.

Here’s the JCL for the LISTCAT

Code:
//VSLIST1  EXEC  PGM=IDCAMS,REGION=4000K
//SYSPRINT DD SYSOUT=*
//SYSIN    DD  DSN=PRD00.BSAU.CONTROL(VSLIST&RGN),DISP=SHR
//*
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Aug 07, 2007 7:01 pm
Reply with quote

Hello,

It will help if you post all of the jcl, not just individual bits as well as the output from the IDCAMS runs. Somewhere in the output is an explanation of the RC=12 as well as possibly other informative info.

Doing this piecemeal may take very long.

When you post, in addition to the jcl, it would be good to include the control statements - not just the dsn(mem). If you post the IDCAMS output, the cvontrol statements should be there.
Back to top
View user's profile Send private message
paramita

New User


Joined: 06 Mar 2005
Posts: 14
Location: Bangalore

PostPosted: Tue Aug 07, 2007 7:10 pm
Reply with quote

Quote:
he is getting an RC=12 because some attribute was allocated but not used - since he is getting output.


Hi dbz,

how do i figure out which attribute was allocated but not used?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 07, 2007 7:34 pm
Reply with quote

paramita wrote:
I checked and found that the data has been copied correctly from the input PRD69.SOAU.CLT.MRVS to the output PRD19.SOAU.MRVS.BATCH.VSAMCPY yet there was the RC12 in this step.

the manual wrote:

12(C) The entire function could not be performed.
since the function was only repro vsam to qsam, something in the copy did not work; record lengths??? you don't know without further info.

Look at a Listcat output of the VSAM file and find the record length(s) determine if it is fixed length or variable.

look at an info listing (3.2.i or 3.4 and i as a line command against the gdg) for the output gdg.

run two test jobs
  1. use the following dcb parm DCB=(SYS2.DSCB),
  2. use the example expat gave
    Code:

    /VSAMCPY  DD DSN=output dataset name,
    //         DISP=(,CATLG,DELETE),
    //         SPACE=(CYL,(10,10),RLSE)


and do the 3.2.i or 3.4, line command i against the gdg output of both tests (above). is there a difference in record length, record type, block length, block type? let us know the results, and we can help. or you will see it yourself ------but, please, get back to us. thanks.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 07, 2007 7:40 pm
Reply with quote

Post your *^&#"^£ output !!!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Aug 07, 2007 8:18 pm
Reply with quote

Quote:
Post your *^&#"^£ output !!!

What icon_question.gif and lose all of this ever-so-meaningful dialog. . . .

What fun would it be if the needed info was actually presented. . . . icon_confused.gif
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top