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
 

 

File does exist and it is showing SOC7 abend
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
saurabhkhandelwal

New User


Joined: 19 Mar 2008
Posts: 14
Location: noida

PostPosted: Wed Mar 19, 2008 11:04 am    Post subject: File does exist and it is showing SOC7 abend
Reply with quote

hi..
i am getting an error in which i am not able to open my input file which i am reading in the program and thats why i m not able to send the read data to the output file..i have checked the file status for my input file which is showing as 35,which means the file does not exist, but the file does exist and it is showing SOC7 abend wen i submit my job.
kindly tell me the solution of the above problem at the earliest.
thank you.
Back to top
View user's profile Send private message

radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Wed Mar 19, 2008 11:40 am    Post subject:
Reply with quote

would like to know about your jcl. Is it possible for you to print the jcl here?
Back to top
View user's profile Send private message
saurabhkhandelwal

New User


Joined: 19 Mar 2008
Posts: 14
Location: noida

PostPosted: Wed Mar 19, 2008 11:46 am    Post subject: required jcl.
Reply with quote

radhakrishnan82 wrote:
would like to know about your jcl. Is it possible for you to print the jcl here?


//PROMDATE JOB (UCC7,9999),'TEST FILE FORMAT',CLASS=D,MSGCLASS=8,
// NOTIFY=&SYSUID
//******************************************************************
//*
// SET CVNO=39
// SET DBNAME=LAPNAM1
// INCLUDE MEMBER=CV&CVNO.JOBL
//*
//******************************************************************
//*** THIS STEP WILL DELETE ALL DATASETS OF PREVIOUS RUN
//******************************************************************
//STEP01 EXEC PGM=L3388
//*
// INCLUDE MEMBER=CV&CVNO.STPL
// DD DSN=SYS1.SCEERUN,DISP=SHR
// INCLUDE MEMBER=CV&CVNO.SYSC
//*STEPLIB DD DSN=PB@OPERS.CMNSTG.LAP1.#005151.LOI,DISP=SHR
//SYSUDUMP DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//INFILE DD DSN=TB@CSSVC.PARTS.DI4PARTS.TEST,DISP=SHR
//INFILE DD DUMMY,DCB=(RECFM=F,LRECL=100)
//INVSAM1 DD DSN=LV.CSOSPROM.TEST,DISP=SHR
//OUTFILE DD DSN=TB@CSSVC.PHUDI.PROMDT.TEST9,
// UNIT=DISK,DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=100,BLKSIZE=1000),
// SPACE=(CYL,(10,5),RLSE)
//*
Back to top
View user's profile Send private message
sandy_venkat

New User


Joined: 16 May 2007
Posts: 35
Location: India

PostPosted: Wed Mar 19, 2008 12:00 pm    Post subject: Reply to: typical soc7 abend.
Reply with quote

Could you please elaborate a bit..

How and where does it show a S0C7 when the system is not able to find the file in the first place??

This is the description i found for the code 35.
-------------------------------------------
Description :

ATEEMPTING TO OPEN AN EMPTY FILE IN INPUT OR I/O MODE. DD NAME IS MISSING OR WRONGLY GIVEN.

Explanation :

An OPEN statement with the INPUT, I-O, or EXTEND phrase was attempted on a non-optional file that was not present.
--------------------------------------------

Chekc your DD statements etc...
Back to top
View user's profile Send private message
advith001

New User


Joined: 16 Mar 2005
Posts: 23

PostPosted: Wed Mar 19, 2008 12:01 pm    Post subject:
Reply with quote

//INFILE DD DSN=TB@CSSVC.PARTS.DI4PARTS.TEST,DISP=SHR
//INFILE DD DUMMY,DCB=(RECFM=F,LRECL=100)


This might be your problem!?

Anna.
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Wed Mar 19, 2008 12:04 pm    Post subject:
Reply with quote

Code:
//SYSUDUMP DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
- should have given duplicate dd. i guess its a typo.
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Wed Mar 19, 2008 12:05 pm    Post subject:
Reply with quote

Rather than searching for file status reason, if you know the displacement number can you go further according to s0c7 resolving procedure and let us know the update.
Back to top
View user's profile Send private message
sandy_venkat

New User


Joined: 16 May 2007
Posts: 35
Location: India

PostPosted: Wed Mar 19, 2008 12:06 pm    Post subject:
Reply with quote

Why does Infile show DUMMY as well??

It shows 'TB@CSSVC.PARTS.DI4PARTS.TEST' and in the next line it shows DD DUMMY as well?? Is that right?

And..is that the file that is not being able to be foind by the system??
Back to top
View user's profile Send private message
saurabhkhandelwal

New User


Joined: 19 Mar 2008
Posts: 14
Location: noida

PostPosted: Wed Mar 19, 2008 12:07 pm    Post subject: Re: Reply to: typical soc7 abend.
Reply with quote

That is what we are not able to find.wen we submit the job it shows soc7 abend.we have even displayed a message in our cobol prog when we are opening the file. we have set the condition that if the status code is other then 00 then display error.that is why it is showing 35 error code.i know the meaning of it but not able as to how to proceed...
Back to top
View user's profile Send private message
sandy_venkat

New User


Joined: 16 May 2007
Posts: 35
Location: India

PostPosted: Wed Mar 19, 2008 12:28 pm    Post subject:
Reply with quote

then follow the normal method of solving the S0c7 by plugging in display statements in the area where the 0C7 is occuring...Check the offset as radhakrishnan told..

And could you also reply to .... Why does Infile show DUMMY as well??
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Mar 19, 2008 12:39 pm    Post subject:
Reply with quote

sandy_venkat wrote:
Why does Infile show DUMMY as well??
Hi,

This will just show a warning in JCL-syntax check, second DD name will be discarded, so it can not be the reason behind S0C7.


saurabhkhandelwal,

Please post the SYSOUT, use "code" tag while posting. "code" tag is just below the subjet line, when you post a reply.
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 Mar 19, 2008 7:43 pm    Post subject:
Reply with quote

Hello,

It may be that the code is trying to process even though the 35 error was raised. Make sure the program presents a suitable error message and terminates when an error is detected.

If the vsam file is defined as input or i-o, it must not be empty. How many records are in the file?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Mar 20, 2008 2:10 am    Post subject:
Reply with quote

dick scherrer wrote:
may be that the code is trying to process even though the 35 error was raised.
Hi Dick,

Here, did You want to say that program might try to READ //DD DUMMY statement ?
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 Mar 20, 2008 2:35 am    Post subject:
Reply with quote

Hi Anuj,

No, i wasn't referrng to the DUMMY dd statement.

My guess was that the vsam file might be empty. A record count at the time of the failure might help determine the cause of the 35.
Back to top
View user's profile Send private message
saurabhkhandelwal

New User


Joined: 19 Mar 2008
Posts: 14
Location: noida

PostPosted: Thu Mar 20, 2008 11:54 am    Post subject: offset problem
Reply with quote

hi..i was getting soc7 error wen i am submitting my job.so i changed my cobol program to call a QUITD when reading the problematic file..now wen i m submitting i am geeting user abend as U1234.
and it is showing error as some offset X'BC6' in spool.
so how to proceed n how to rectify this abend.
Back to top
View user's profile Send private message
saurabhkhandelwal

New User


Joined: 19 Mar 2008
Posts: 14
Location: noida

PostPosted: Thu Mar 20, 2008 12:11 pm    Post subject:
Reply with quote

hi..
i am posting the required jcl..
please reply at the earliest as this is a crucial mattter.

//PROMDATE JOB (UCC7,9999),'TEST FILE FORMAT',CLASS=D,MSGCLASS=8,
// NOTIFY=&SYSUID
//*******************************************************************
//*
// SET CVNO=39
// SET DBNAME=LAPNAM1
// INCLUDE MEMBER=CV&CVNO.JOBL
//*
//*******************************************************************
//*** THIS STEP WILL DELETE ALL DATASETS OF PREVIOUS RUN
//*******************************************************************
//STEP01 EXEC PGM=L3388
//*
// INCLUDE MEMBER=CV&CVNO.STPL
// DD DSN=SYS1.SCEERUN,DISP=SHR
// INCLUDE MEMBER=CV&CVNO.SYSC
//*STEPLIB DD DSN=PB@OPERS.CMNSTG.LAP1.#005151.LOI,DISP=SHR
//SYSUDUMP DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//INFILE DD DSN=TB@CSSVC.PARTS.DI4PARTS.TEST,DISP=SHR
//INVSAM DD DSN=LV.CSOSPROM.TEST,DISP=SHR
//OUTFILE DD DSN=TB@CSSVC.PHUDI.PROMDT.TEST9,
// UNIT=DISK,DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=109,BLKSIZE=1000),
// SPACE=(CYL,(10,5),RLSE)
//

thankyou.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Mar 20, 2008 1:17 pm    Post subject:
Reply with quote

Quote:

so how to proceed n how to rectify this abend


you can check for a status not equal to 00 when you open your file and then 'STOP' you program at that point and resolve your file problem.

the soc7 has nothing to do with the file. poor logic - continuing to process after a bad file i/o - is the cause of your s0c7.
Back to top
View user's profile Send private message
saurabhkhandelwal

New User


Joined: 19 Mar 2008
Posts: 14
Location: noida

PostPosted: Thu Mar 20, 2008 1:59 pm    Post subject:
Reply with quote

i have already done that long back.it is displaying 35 as error code which means that the file does not exist but the file exist.
it is displaying some error at offsets like offset X'BC6'.
what does this mean?? and how to reolve it?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Thu Mar 20, 2008 2:04 pm    Post subject: Reply to: File does exist and it is showing SOC7 abend
Reply with quote

In such cases a good technique is to cause a known error
to start with this approach run a job without the culprit dd statement
and see what happens

if You have the same symptom .... icon_smile.gif
Back to top
View user's profile Send private message
saurabhkhandelwal

New User


Joined: 19 Mar 2008
Posts: 14
Location: noida

PostPosted: Thu Mar 20, 2008 2:13 pm    Post subject: Re: Reply to: File does exist and it is showing SOC7 abend
Reply with quote

i tried as u said. i commented the culprit dd statement and submitted the job,the abend is still the same.and even the offset is also the same.
now what to do??
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
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 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
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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