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
 

 

S0C4 Error due to file status 92

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: S0C4 Error due to file status 92
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Thu Jun 14, 2007 4:36 pm    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Jun 14, 2007 4:41 pm    Post subject:
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    Post subject: Re: Soc4 due to file status 92
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: 3158
Location: Tucson AZ

PostPosted: Thu Jun 14, 2007 6:25 pm    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Thu Jun 14, 2007 7:43 pm    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Jun 14, 2007 7:48 pm    Post subject:
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

Site Director


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

PostPosted: Thu Jun 14, 2007 9:58 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Jun 14, 2007 10:27 pm    Post subject:
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    Post subject: Re: S0C4 Error due to file status 92
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    Post subject:
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

Site Director


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

PostPosted: Fri Jun 15, 2007 12:07 pm    Post subject:
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    Post subject:
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    Post subject: Re: S0C4 Error due to file status 92
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

Site Director


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

PostPosted: Fri Jun 15, 2007 7:14 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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