Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IDCAMS/REPRO: RC = 12: Solution reqd ...
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
jain.eti

New User


Joined: 23 Jan 2007
Posts: 25
Location: delhi

PostPosted: Tue Nov 11, 2008 11:46 pm    Post subject: IDCAMS/REPRO: RC = 12: Solution reqd ...
Reply with quote

Title edited/corrected

Hi,
I am trying to REPRO a tape file to DASD using IDCAMS. I used the below JCL -
Code:
//M4443ETI JOB (N400),'AMIT-ETI',CLASS=K,                               
//             MSGCLASS=P,COND=(0,LT),                                 
//             REGION=0K,                                               
//             NOTIFY=&SYSUID                                           
//*=====================================================================
//***                                                                   
//TODISK   EXEC PGM=IDCAMS                                             
//***                                                                   
//*=====================================================================
//***                                                                   
//SYSPRINT DD  SYSOUT=*                                                 
//SYSUDUMP DD  SYSOUT=*                                                 
//***                                                                   
//INFILE   DD DSN=SYS3.QPP1D.ARCH.D08119.T105510.F01,                   
//          DISP=SHR,                                                   
//          UNIT=3490,VOLUME=(,RETAIN,,,SER=(444392)),                 
//          LABEL=(727,SL),                                             
//          RECFM=VBA,LRECL=240,BLKSIZE=32760                           
//***                                                                   
//OUTFILE  DD DSN=&&ARCHDISP,                                           
//*        RECFM=VBA,LRECL=240,BLKSIZE=32760                           
//          DISP=(NEW,PASS,DELETE),                                     
//          UNIT=TEMPDA,                                               
//          SPACE=(CYL,(100,5),RLSE),                                   
//          RECFM=VBA,LRECL=240,BLKSIZE=32760                           
//***                                                                   
//SYSIN    DD  *                                                       
   REPRO INFILE(INFILE) OUTFILE(OUTFILE)                               
//***                                                                   
//*=====================================================================

But I am getting a return code of 12. I am attaching the SYSPRINT here -
Code:
IDCAMS  SYSTEM SERVICES                                           TIME: 12:51:27
                                                                               
   REPRO INFILE(INFILE) OUTFILE(OUTFILE)                                       
IDC3300I  ERROR OPENING SYS3.QPP1D.ARCH.D08119.T105510.F01                     
IDC3321I ** OPEN/CLOSE/EOV ABEND EXIT TAKEN                                     
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0                                     
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12                             
                                                                               
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12             


Any idea why this problem occured? But I used the same JCL to REPRO some other tape files to DASD and they went fine. What's the problem with this JCL? Guys, any idea? I badly need ur suggestions ...
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Nov 12, 2008 12:09 am    Post subject:
Reply with quote

What's the error message(s) in the job output? Having some idea of what the system thinks the error is can be quite useful in resolving the problem, actually.
Back to top
View user's profile Send private message
jain.eti

New User


Joined: 23 Jan 2007
Posts: 25
Location: delhi

PostPosted: Wed Nov 12, 2008 12:17 am    Post subject:
Reply with quote

Robert,
What do you mean by error messages? I already attached the SYSPRINT of TODISK step. However now I am attaching the step description in JESYSMSG -
Code:
IEF373I STEP/TODISK  /START 2008316.1251                                       
IEF374I STEP/TODISK  /STOP  2008316.1308 CPU    0MIN 00.27SEC SRB    0MIN 00.07S
IEF237I 5D54 ALLOCATED TO SYS00001                                             
IEF285I   SYS08316.T130825.RA000.M4443ETI.R0131346     KEPT                     
IEF285I   VOL SER NOS= 1DW005.                                                 
IGD105I SYS08316.T125127.RA000.M4443ETI.ARCHDISP.H01 DELETED,   DDNAME=OUTFILE 
IEF201I M4443ETI TODISK - JOB TERMINATED BECAUSE OF CONDITION CODES             

But all these statements are informative. These informations are not indicating any error!
Wish to hear from u ...
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Nov 12, 2008 12:24 am    Post subject:
Reply with quote

There's usually something in the JES messages about why the dataset cannot be opened. I suspect there's something in your case as I see the message about DDNAME=OUTFILE being deleted, but where's a message about DDNAME=INFILE? And why are you getting a dynamically allocated file SYS00001?
Back to top
View user's profile Send private message
jain.eti

New User


Joined: 23 Jan 2007
Posts: 25
Location: delhi

PostPosted: Wed Nov 12, 2008 12:48 am    Post subject:
Reply with quote

Robert, refer the JES message in details -
Code:

ICH70001I PSCZEXJ  LAST ACCESS AT 12:51:27 ON TUESDAY, NOVEMBER 11, 2008       
IEF236I ALLOC. FOR M4443ETI TODISK                                             
IEF237I JES2 ALLOCATED TO SYSPRINT                                             
IEF237I JES2 ALLOCATED TO SYSUDUMP                                             
IEF237I 05C6 ALLOCATED TO INFILE                                               
IGD101I SMS ALLOCATED TO DDNAME (OUTFILE )                                     
        DSN (SYS08316.T132323.RA000.M4443ETI.ARCHDISP.H01)                     
        STORCLAS (SCWORK01) MGMTCLAS (        ) DATACLAS (        )             
        VOL SER NOS= 1DW001                                                     
IEF237I JES2 ALLOCATED TO SYSIN                                                 
IEC149I 813-04,IFG0195H,M4443ETI,TODISK,INFILE,05C6,444392,SYS3.QPP1D.ARCH.D0811
IEC141I 013-34,IGG0191I,M4443ETI,TODISK,OUTFILE,5D50,1DW001,SYS08316.T132323.RA0
IEF142I M4443ETI TODISK - STEP WAS EXECUTED - COND CODE 0012                   
IEF285I   PSCZEXJ.M4443ETI.JOB31468.D0000102.?         SYSOUT                   
IEF285I   PSCZEXJ.M4443ETI.JOB31468.D0000103.?         SYSOUT                   
IEF285I   SYS3.QPP1D.ARCH.D08119.T105510.F01           KEPT                     
IEF285I   VOL SER NOS= 444392.                                                 
IEF285I   PSCZEXJ.M4443ETI.JOB31468.D0000101.?         SYSIN                   
                                                                               
*-------------------------------------------------------------------------------
*                                                      P E R O T  S Y S T E M S
*                                                       S T E P   R E P O R T   
*-------------------------------------------------------------------------------
*                        CONDITION      STEP      PRIVATE    SCRATCH    I/O CONN
* JOBSTEP     PROCSTEP      CODE      RUN TIME     MOUNTS     MOUNTS       TIME
*                                                                               
* TODISK                   R0012    00:32:28.84         1          0    00:00:12
*-------------------------------------------------------------------------------
*   VOLUME DDNAME     I/O TIME   EXCP COUNT    VOLUME DDNAME     I/O TIME   EXCP
*                                                                               
*-------------------------------------------------------------------------------
                                                                               
IEF373I STEP/TODISK  /START 2008316.1323                                       
IEF373I STEP/TODISK  /START 2008316.1323                                       
IEF374I STEP/TODISK  /STOP  2008316.1355 CPU    0MIN 00.24SEC SRB    0MIN 00.07
IEF237I 5D50 ALLOCATED TO SYS00001                                             
IEF285I   SYS08316.T135552.RA000.M4443ETI.R0131398     KEPT                   
IEF285I   VOL SER NOS= 1DW001.                                                 
IGD105I SYS08316.T132323.RA000.M4443ETI.ARCHDISP.H01 DELETED,   DDNAME=OUTFILE
IEF201I M4443ETI TODISK - JOB TERMINATED BECAUSE OF CONDITION CODES           
                                                                               
*------------------------------------------------------------------------------
*                                                      P E R O T  S Y S T E M S
*                                                        J O B   R E P O R T   
*------------------------------------------------------------------------------
*                        CONDITION      JOB       PRIVATE    SCRATCH    I/O CON
* JOBNAME       DATE        CODE      RUN TIME     MOUNTS     MOUNTS       TIME
*                                                                             
* M4443ETI    11/11/08     R0012    00:32:28.97         1          0    00:00:1
*------------------------------------------------------------------------------
*                                                                             
IEF375I  JOB/M4443ETI/START 2008316.1323                                       
IEF376I  JOB/M4443ETI/STOP  2008316.1355 CPU    0MIN 00.24SEC SRB    0MIN 00.07


Please refer the JES message above? Actually this is the part of our impacted job. This step is creating the problem and that's why I was trying to run that particular step and thats why this particular output file is temporary ...
Got me, Robert?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Nov 12, 2008 1:06 am    Post subject: Reply to: IEBGENER: RC = 12: Solution reqd ...
Reply with quote

the reaso is under Your eyes ...

IEC149I 813-04,.....

here is link to the messages and codes manual,

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2M781/SPTM010637

there is a mismatch between the dd parms and the tape content
( could also be the wrong file sequence number )
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Nov 12, 2008 1:09 am    Post subject:
Reply with quote

This is a lot more informative. Error messages from the system are very good at telling you what the problem could be.

This message
Code:
IEC149I 813-04,IFG0195H,M4443ETI,TODISK,INFILE,05C6,444392,SYS3.QPP1D.ARCH.D0811
says that the dataset name on the tape label does not match the name in your JCL for INFILE. Can you run a tape map or similar utility to find out the actual tape dataset name?

This message
Code:
IEC141I 013-34,IGG0191I,M4443ETI,TODISK,OUTFILE,5D50,1DW001,SYS08316.T132323.RA0
has a bit longer possible list of causes:
Quote:
34
The system detected one of these conditions:

* The following combination was specified: QSAM, MACRF=GD or PD, and a RECFM value that is not VS, VBS, DS, or DBS.

* An OPEN macro instruction was issued for a data set with BLKSIZE and BUFL equal to 0. The system determined that it had to obtain buffers but was unable to do so.

* RECFM was specified with both the A and M attributes.

* The following combination was specified: QSAM, LRECL=0, and a RECFM value that is not V or VB.

* The following combination was specified: RECFM=V or VB and LRECL greater than the quantity BLKSIZE minus 4.

* The following combination was specified: QSAM and BLKSIZE=0. No nonzero BLKSIZE value was available from any source and the system could not determine one. Coding BLKSIZE=0 in the JCL never has an effect except when overriding a cataloged procedure variable.

* The following combination was specified: RECFM not variable or undefined and LRECL greater than BLKSIZE.

* The following combination was specified: BFTEK=A, RECFM=VBS, and LRECL=0.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Wed Nov 12, 2008 5:45 am    Post subject:
Reply with quote

Hello,

It sounds like the 727 is incorrect . . .

Which tape management system is used on your system? If you talk with your tape storage management people, they can tell you all of the files on this multi-file volume.

DISP=SHR should not be used for tape/cart. . .

You need to fix the problem with INFILE before you concern yourself with OUTFILE.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Wed Nov 12, 2008 10:19 am    Post subject: Reply to: IDCAMS/REPRO: RC = 12: Solution reqd ...
Reply with quote

Jain,

If you are still facing problems, Why don't you try using IEBGENER for copying datasets from TAPE to DASD.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Wed Nov 12, 2008 10:24 am    Post subject:
Reply with quote

Hello,

If file #727 on the tape is not the one named in the dsn, it will not matter which utility is used. The abend will still occur.

The first task is to ensure the jcl and the file spacify the same dsn.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Wed Nov 12, 2008 12:16 pm    Post subject: Reply to: IDCAMS/REPRO: RC = 12: Solution reqd ...
Reply with quote

Dick,

Quote:
The first task is to ensure the jcl and the file spacify the same dsn.


Very True.

I had posted as I had used ONLY IEBGENER for such requirements. Anyways I should have had a look at the actual issue icon_sad.gif . Sorry for that.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Wed Nov 12, 2008 8:41 pm    Post subject:
Reply with quote

Hi Aaru,

Quote:
Sorry for that.
Not to worry - the "post police" are watching icon_wink.gif
Back to top
View user's profile Send private message
jain.eti

New User


Joined: 23 Jan 2007
Posts: 25
Location: delhi

PostPosted: Thu Nov 13, 2008 12:04 am    Post subject:
Reply with quote

Thank you Robert and Enrico! It was new to me. Thanks once again ... I learnt a new thing icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Nov 13, 2008 12:07 am    Post subject:
Reply with quote

Hello,

Quote:
I learnt a new thing
Good to hear icon_smile.gif

Is the abend resolved and the job successfully run?
Back to top
View user's profile Send private message
jain.eti

New User


Joined: 23 Jan 2007
Posts: 25
Location: delhi

PostPosted: Thu Nov 13, 2008 12:20 am    Post subject:
Reply with quote

Oops! I did not see the last posts in this sections. I was aware of Enrico and Robert's reply only! However, Dick I am trying to confirm what I understood from ur post -
Quote:
It sounds like the 727 is incorrect . . .

Which tape management system is used on your system? If you talk with your tape storage management people, they can tell you all of the files on this multi-file volume.

DISP=SHR should not be used for tape/cart. . .

According to u, I should have to understand whether the INFILE is present in the correct label i.e. 727 in the tape. Am I right? OK! We have received a dump with informtaion of tape files, VOL-SER and labels within a particular date-range. We are trying to FTP those files mentioned in the DISPATCH dump, to windows server. So in the DISPATCH dump, all the information regarding the files, its VOL-SER and label is mentioned.
I do not know which tape-management system is used! Is CA-1 a tape-management system? I do not have any idea ... icon_neutral.gif
Dick I am eager to listen from u ....
Back to top
View user's profile Send private message
jain.eti

New User


Joined: 23 Jan 2007
Posts: 25
Location: delhi

PostPosted: Thu Nov 13, 2008 12:26 am    Post subject:
Reply with quote

By the way, that problem is not still solved and I am trying seach a needle in a dump of garbages ... icon_cry.gif I do not have any idea about this problem ...
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Nov 13, 2008 12:31 am    Post subject:
Reply with quote

Hello,

Quote:
Is CA-1 a tape-management system?
Yes, it is. If you talk with the tape storage management people they should be able to run a "grw" (generalized report writer - comes with CA-1) or an EARL (a better reporting tool [imho] that also comes with CA-1) report that will list all of the files on that volume and which file# each is.

That is probably a good place to start.

How did you come to know that #727 was this particular file?
Back to top
View user's profile Send private message
jain.eti

New User


Joined: 23 Jan 2007
Posts: 25
Location: delhi

PostPosted: Thu Nov 13, 2008 12:45 am    Post subject:
Reply with quote

Yah! I looked into the dump (I mentioned in my earlier post) and it is pretty much confirmed that the label (727) is referring the same tape file. By the way, now we are getting a new error in JES -
Code:
IEF237I JES2 ALLOCATED TO SYSUDUMP                                             
IEF237I 05C4 ALLOCATED TO INFILE                                               
IGD101I SMS ALLOCATED TO DDNAME (OUTFILE )                                     
        DSN (SYS08317.T122359.RA000.M445857H.ARCHDISP.H01)                     
        STORCLAS (SCWORK01) MGMTCLAS (        ) DATACLAS (        )             
        VOL SER NOS= 1DW003                                                     
IEF237I JES2 ALLOCATED TO SYSIN                                                 
IEC030I B37-04,IFG0554A,M445857H,TODISK,OUTFILE,5D52,1DW003,SYS08317.T122359.RA0
IEF142I M445857H TODISK STEP070 - STEP WAS EXECUTED - COND CODE 0012           
IEF285I   CA7STC.M445857H.JOB34827.D0000162.?          SYSOUT                   
IEF285I   CA7STC.M445857H.JOB34827.D0000163.?          SYSOUT                   
IEF285I   SYS3.QPP1D.ARCH.D08118.T112723.F01           KEPT                     
IEF285I   VOL SER NOS= 445857.                                                 
IGD106I SYS08317.T122359.RA000.M445857H.ARCHDISP.H01 PASSED,    DDNAME=OUTFILE 
IEF285I   CA7STC.M445857H.JOB34827.D0000102.?          SYSIN                   

Look now we are getting B37 (I believe, it is space abend). Is it not so?
But we modified our job with a larger space (for both primary and secondary) but with the same result. Dick, some other input?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Thu Nov 13, 2008 12:48 am    Post subject:
Reply with quote

You need to either give the file more space or possibly let it go to multiple volumes if it has used up an entire volume already. SB37 means there's no space left on the volume for a secondary extent.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Thu Nov 13, 2008 12:52 am    Post subject:
Reply with quote

You mentioned a dump in an earlier post -- would that have record counts in it? If so, you can calculate how much space you need and ensure you've allocated enough space on disk for the file.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
This topic is locked: you cannot edit posts or make replies. Need help in design the solution ritnihi PL/I & Assembler 1 Tue Dec 22, 2015 1:48 pm
No new posts VB to KSDS repro kranthikumarb JCL & VSAM 1 Fri Aug 14, 2015 4:45 pm
No new posts Issue in FROMKEY(REPRO) VSAM having 1... thesumitk JCL & VSAM 5 Tue Jul 07, 2015 5:33 pm
No new posts Please give me solution(OUTPUT ) for ... sivareddy123 COBOL Programming 4 Mon Feb 02, 2015 1:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us