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

S0C4 Error due to file status 92


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Thu Jun 14, 2007 4:19 pm
Reply with quote

Hi,

I am getting File status - 92 can anyone help me to solve this, Thanks in Advance.
Please find the details below :

File-control:

Code:
     SELECT STAR-INPUT-FILE  ASSIGN TO INFILEA 
           FILE STATUS IS STAR-INPUT-STATUS.   


File-section :

Code:
FD  STAR-INPUT-FILE                       
     RECORDING MODE IS F                   
     BLOCK CONTAINS 0 RECORDS             
     LABEL RECORDS ARE STANDARD           
     DATA RECORD IS STAR-INPUT-RECORD.     
 01  STAR-INPUT-RECORD.                   
     05 PART1-1      PIC X(132).           
     05 NUM1-1A      PIC 9(12).           
     05 FILLER       PIC X(01).           
     05 NUM1-1B      PIC 9(02).           
     05 PART1-2      PIC X(551).           
     05 NUM1-2A      PIC 9(12).           
     05 FILLER       PIC X(01).           
     05 NUM1-2B      PIC 9(02).           
     05 PART1-3      PIC X(108).           
                                           


I get File stus 92 at

Code:
OPEN INPUT  STAR-INPUT-FILE.
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Thu Jun 14, 2007 4:25 pm
Reply with quote

Sorry for not providing this before.
My JCL goes like this,

Code:
//INFILEA  DD   DSN=MC3716.RAVI.STAR.UPLOAD.MAY07,DISP=SHR       
//OUTFILEA DD   DSN=MC3716.MTW.STAR.UPLOAD.MAY07.OUTFILE,       
//            DISP=(NEW,CATLG,DELETE),                           


and the dataseta details are insync with the record layout of COBOL.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Jun 14, 2007 4:36 pm
Reply with quote

Kiran,

Your FD doesn't have RECORD CONTAINS...... statement. Include this and try one more time.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jun 14, 2007 4:41 pm
Reply with quote

murmohk1 wrote:
Your FD doesn't have RECORD CONTAINS...... statement. Include this and try one more time.
It is not needed.
kgumraj wrote:
Sorry for not providing this before.
My JCL goes like this,
What kind of file is this? VSAM? QSAM?
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Thu Jun 14, 2007 6:16 pm
Reply with quote

William,

It is Flat file (PS) , Can You Please let me know where I went wrong ?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jun 14, 2007 6:25 pm
Reply with quote

I don't know, I don't recall seeing a logic error on anything other than a VSAM file..... Are you sure?
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Thu Jun 14, 2007 7:31 pm
Reply with quote

Yes,

It is Flat file, We too are in Confusion !!!
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Thu Jun 14, 2007 7:43 pm
Reply with quote

So let's see the actual error printout.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jun 14, 2007 7:48 pm
Reply with quote

Phil, it won't show much, being a status return value.

Kiran, do a 3.4 on the file and let us know what the lrecl, recfm and blksize are.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jun 14, 2007 9:58 pm
Reply with quote

Hello,

What connection is the 92 to the 0c4?

Is this a new program or were changes made to something existing (if so, what changed)?

If you post all of the jcl for this step, it may help.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Jun 14, 2007 10:15 pm
Reply with quote

dick scherrer wrote:
Hello,

What connection is the 92 to the 0c4?

Is this a new program or were changes made to something existing (if so, what changed)?

If you post all of the jcl for this step, it may help.


More then likely the program doesn't know what action to take for a '92' so it just continues, the input record doesn't point to anything and that causes to OC4.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jun 14, 2007 10:27 pm
Reply with quote

Very possibly. . .

I'd still like to see the replies to ques 2 & 3. . .

Sounds scary that the program detects the 92 and just keeps on running icon_confused.gif

It might be interesting to take the "file status" out of the select and see what "real" abend is generated. Wouldn't keep it that way, just for a test.

Which reminds me of a question not yet asked - is this situation in test or production?
Back to top
View user's profile Send private message
srebba
Warnings : 1

New User


Joined: 26 Apr 2007
Posts: 37
Location: USA

PostPosted: Thu Jun 14, 2007 11:04 pm
Reply with quote

Hi,

can u please change the program name and program id and compile and run once.

please try once...I will let u know once its successfully completed.


Thank you
Sree
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Fri Jun 15, 2007 11:44 am
Reply with quote

My JCL has only one step, it is a new program.
I tried what Sree suggested but it didnt help.

This is my JCl


Code:
//STEP1    EXEC PGM=PAUB001P                                   
//*INFILEA   DD   DSN=MC37TDSB.MTW.STAR.UPLOAD.MAY07,DISP=SHR 
//INFILEA  DD   DSN=MC3716.RAVI.STAR.UPLOAD.MAY07,DISP=SHR     
//OUTFILEA DD   DSN=MC3716.MTW.STAR.UPLOAD.MAY07.OUTFILE,     
//    DISP=(NEW,CATLG,DELETE),                         
//    UNIT=DISK,                                       
//    SPACE=(CYL,(1,15),RLSE),                         
//    DCB=(RECFM=FB,LRECL=807,BLKSIZE=0)     
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Jun 15, 2007 12:07 pm
Reply with quote

Hello,

Please try this and post back what the abend is.
Quote:
It might be interesting to take the "file status" out of the select and see what "real" abend is generated. Wouldn't keep it that way, just for a test


Do you have another program that simply opens the input file and reads it? If not, you might want to create one and run that to see if the error persists. The only "logic" would be to read all of the records and possibly display a record count at end of file.

My guess is that there is a coding problem in the PAUB001P code.
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Fri Jun 15, 2007 3:40 pm
Reply with quote

Dick,

When tried in sysout I got this message,

Code:
The system detected a protection exception (System Completion Code=0C4). 
From compile unit PAUB001P at entry point PAUB001P at compile unit offset


Let me know where did I go wrong. Thanks
Back to top
View user's profile Send private message
srebba
Warnings : 1

New User


Joined: 26 Apr 2007
Posts: 37
Location: USA

PostPosted: Fri Jun 15, 2007 6:32 pm
Reply with quote

Hi,

Please let me tell u possibilities of SOC4 which I have faced. so that u can concentate on these.(Strange)

1) I forgot to Code STOP RUN un the program. I got abend SOC4. I wasted 2 hours and I strugled. Then I analyzed the program once again from the top to bottom then I found and I coded the STOP RUN. program went fine.

2) (SOC4) it related to the Files. I have missed small period before file open( i did not remember exaclty) but its coding problem. then I analysed i coded exaclty . program went fine.

3) one of my team member coded one program. that program was fine and my team memebers are also involved. I was getting SOC4 abend. it was small program. SOC4 abend due to files (related ro Neither file status nor declare files status something like that ) . What happned was the program was compiled and created object program. The object program(some other are created with that name) was already in the Load module
then it was not updated. the program was picking up the old one. Thing the program was using same files. I have anaylysed and I have changed the program name and progam id and program went fine. (Strange problem)

4) Final. Pls put Display statement before of the File reads and after the file and analys the data in the file if abends at that file. (Pls anyalyse the code)

Any comments on these ur most welcome.

Thank you,
Sree
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Jun 15, 2007 7:14 pm
Reply with quote

Hello,

What about the status 92? Was there no informatin about a file problem in the sysout datasets?

Have yo tried to read this file in a small "stand-alone" bit of code? Code with no business processing, just a read thru the file (i mentioned this last night).

You may have "fallen out the bottom" of this set of problem code.
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Unable to interpret a hex value to De... COBOL Programming 4
No new posts Help on IMS -API URL migrating from P... IMS DB/DC 1
No new posts JES datasets IO Error ABENDS & Debugging 3
No new posts Error to invoke MPP program through B... IMS DB/DC 3
No new posts how to eliminate null indicator value... DB2 7
Search our Forums:

Back to Top