MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Status 35 error

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
pvrajs
Beginner


Joined: 07 Jan 2005
Posts: 41
Topics: 12

PostPosted: Fri Dec 29, 2006 2:34 pm    Post subject: Status 35 error Reply with quote

I have written a simple program which will read 2 generation files, compare the count of the records and set the return code of the cobol program.

The test job is returning me an error of Status 35. Please help me in rectifying the error. Details are as below -

Job:

//S005 EXEC PGM=<PRGNAME>
//SYSPRINT DD SYSOUT=*
//STEPLIB DD DISP=SHR,DSN=<LOADLIB>
//PREVGEN DD DISP=SHR,DSN=<PREV GEN>
//CURRGEN DD DISP=SHR,DSN=<CURR GEN>
//SYSIN DD *
01
/*

Program:

FILE-CONTROL.
SELECT CURRGEN ASSIGN S-CURR-GEN
ORGANIZATION IS SEQUENTIAL
ACCESS IS SEQUENTIAL.

SELECT PREVGEN ASSIGN S-PREV-GEN
ORGANIZATION IS SEQUENTIAL
ACCESS IS SEQUENTIAL.

0100-OPEN-READ.
OPEN INPUT PREVGEN
PERFORM UNTIL PREV-GEN-EOF
READ PREVGEN
AT END
................

Error:

IGZ0035S There was an unsuccessful OPEN or CLOSE of file GEN in program DSARECCM at relative location X'0660'. Neither FILE STATUS nor an ERROR declarative were specified. The status code was 35. From compile unit DSARECCM at entry point DSARECCM at compile unit offset +00000660 at entry offset +00000660 address 20800908.
Description Online:

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

Thanks,
Vijay
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Fri Dec 29, 2006 3:00 pm    Post subject: Reply with quote

Where do you open CURRGEN?
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Dec 29, 2006 3:59 pm    Post subject: Reply with quote

Quote:

SELECT PREVGEN ASSIGN S-PREV-GEN

Quote:

SELECT CURRGEN ASSIGN S-CURR-GEN


pvrajs,

Your ASSIGN statement itself is wrong. You cannot have hyphens . So change your ASSIGN statements to the following

Quote:

SELECT PREVGEN ASSIGN S-PREVGEN

Quote:

SELECT CURRGEN ASSIGN S-CURRGEN


Also as Bill mentioned you are missing the OPEN statement for CURRGEN dd.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pvrajs
Beginner


Joined: 07 Jan 2005
Posts: 41
Topics: 12

PostPosted: Tue Jan 02, 2007 11:12 am    Post subject: Reply with quote

Thanks Bill and Kolusu. It executed fine.

Bill, to answer your question I opened the other file using another statement.

Kolusu, apologize for getting into the basics. I understand from the syntax of SELECT clause that S-CURR-GEN refers to the device-name and can be any valid dataname. Please clarify.

Thanks,
Vijay
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jan 02, 2007 12:09 pm    Post subject: Reply with quote

Pvrajs,

Any thing you specify before the first hyphen is considered as the device name. But you had the hyphen even after CURR. It is not a valid device name. The Assign clause for the old cobol compilers had to contain specific device specifications. In that was a Symbolic-Device this was to assign a specific number to each device (ie. SYS001-255) and with it was a Device Class (UR,UT,DA).

Check this link for detailed explanation

http://www.mvsforums.com/helpboards/viewtopic.php?p=7137#7137

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pvrajs
Beginner


Joined: 07 Jan 2005
Posts: 41
Topics: 12

PostPosted: Tue Jan 02, 2007 12:25 pm    Post subject: Reply with quote

Thanks a lot Kolusu
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group