|
|
| Author |
Message |
saurabhkhandelwal
New User
Joined: 19 Mar 2008 Posts: 11 Location: noida
|
|
|
|
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 |
|
 |
References
|
|
 |
radhakrishnan82
Senior Member
Joined: 31 Mar 2005 Posts: 386 Location: chennai, India
|
|
|
|
| would like to know about your jcl. Is it possible for you to print the jcl here? |
|
| Back to top |
|
 |
saurabhkhandelwal
New User
Joined: 19 Mar 2008 Posts: 11 Location: noida
|
|
|
|
| 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 |
|
 |
Moved: Wed Mar 19, 2008 11:59 am by mcmillan From Mainframe COBOL to ABENDS & Debugging |
sandy_venkat
New User
Joined: 16 May 2007 Posts: 27 Location: India
|
|
|
|
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 |
|
 |
advith001
New User
Joined: 16 Mar 2005 Posts: 21
|
|
|
|
//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 |
|
 |
radhakrishnan82
Senior Member
Joined: 31 Mar 2005 Posts: 386 Location: chennai, India
|
|
|
|
| Code: |
//SYSUDUMP DD SYSOUT=*
//SYSUDUMP DD SYSOUT=* |
- should have given duplicate dd. i guess its a typo. |
|
| Back to top |
|
 |
radhakrishnan82
Senior Member
Joined: 31 Mar 2005 Posts: 386 Location: chennai, India
|
|
|
|
| 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 |
|
 |
sandy_venkat
New User
Joined: 16 May 2007 Posts: 27 Location: India
|
|
|
|
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 |
|
 |
saurabhkhandelwal
New User
Joined: 19 Mar 2008 Posts: 11 Location: noida
|
|
|
|
| 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 |
|
 |
sandy_venkat
New User
Joined: 16 May 2007 Posts: 27 Location: India
|
|
|
|
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 |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2143 Location: Phoenix, AZ
|
|
|
|
| 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 |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8627 Location: 221 B Baker St
|
|
|
|
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 |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2143 Location: Phoenix, AZ
|
|
|
|
| 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 |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8627 Location: 221 B Baker St
|
|
|
|
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 |
|
 |
saurabhkhandelwal
New User
Joined: 19 Mar 2008 Posts: 11 Location: noida
|
|
|
|
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 |
|
 |
|
|