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

File Status 90 : While writing a file


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pecram24

New User


Joined: 12 Oct 2009
Posts: 35
Location: Chennai

PostPosted: Wed Jan 06, 2010 5:27 pm
Reply with quote

hi,

I am getting the file status 90 while writing a file.
The output file which is i am writing is a TAPE file.
Could anyone tell me the reason for this?


Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jan 06, 2010 5:34 pm
Reply with quote

Why not look at the sticky topic labelled file status codes, which at the time of posting this reply is the one directly above this post icon_rolleyes.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jan 06, 2010 5:39 pm
Reply with quote

Any messages in the joblog?
Back to top
View user's profile Send private message
pecram24

New User


Joined: 12 Oct 2009
Posts: 35
Location: Chennai

PostPosted: Wed Jan 06, 2010 5:45 pm
Reply with quote

there is no other messages... icon_sad.gif
Back to top
View user's profile Send private message
pecram24

New User


Joined: 12 Oct 2009
Posts: 35
Location: Chennai

PostPosted: Wed Jan 06, 2010 5:47 pm
Reply with quote

The output file is NOT a VSAM file....
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jan 06, 2010 5:49 pm
Reply with quote

Did you check the file status on the OPEN?
What does your ASSIGN statement look like?
What does the JCL statement for the file look like?
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jan 06, 2010 5:57 pm
Reply with quote

Questions -

01) Was the file opened successfully?
02) Do the DCB characteristics match with the program?
03) There must be messages raised in the JOBLOG (as Peter suggests)
04) Is this the first time you have executed this program?
05) Has the program ever worked before?

Sometimes a "90" can be an elusive and "too generic" a status-code.

Could you add the the secondary status-codes to the program, which consists of a group-level, with three elementary binary-halfwords? This is defined in the COBOL manual and could pinpoint your error.

Bill
Back to top
View user's profile Send private message
Andy85

New User


Joined: 25 Dec 2008
Posts: 35
Location: India

PostPosted: Wed Jan 06, 2010 5:58 pm
Reply with quote

Check whether the file attributes in JCL and program are in sync. Sometimes, this also gives file status 90.


Andy.
Back to top
View user's profile Send private message
pecram24

New User


Joined: 12 Oct 2009
Posts: 35
Location: Chennai

PostPosted: Wed Jan 06, 2010 6:06 pm
Reply with quote

The attributes are in SYNC.
The file has some processed records also.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Jan 06, 2010 9:05 pm
Reply with quote

pecram24 wrote:
The file has some processed records also.
icon_confused.gif How do you know that? What DISP did you use?
Back to top
View user's profile Send private message
pecram24

New User


Joined: 12 Oct 2009
Posts: 35
Location: Chennai

PostPosted: Wed Jan 06, 2010 9:39 pm
Reply with quote

because the disp parm is new,catlg,catlg
Back to top
View user's profile Send private message
Himaprasad

New User


Joined: 05 Apr 2006
Posts: 2

PostPosted: Thu Jan 07, 2010 12:17 pm
Reply with quote

Since you are using Tape as an output did you mention the Volume correctly. I guess that could be the reason.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jan 07, 2010 12:22 pm
Reply with quote

Himaprasad wrote:
Since you are using Tape as an output did you mention the Volume correctly. I guess that could be the reason.

Why would anyone need to mention the volume ?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jan 07, 2010 9:42 pm
Reply with quote

Hi Expat,

Quote:
Why would anyone need to mention the volume
Because there is no automated tape management system. . . Hard to believe, but they do still exist. . . And those sites experience many really dumb problems. . .

For pecram24,
Quote:
The file has some processed records also.
Quote:
How do you know that? What DISP did you use?

Quote:
because the disp parm is new,catlg,catlg
Why do you believe a disp of NEW means there are "some processed records"?
Back to top
View user's profile Send private message
pecram24

New User


Joined: 12 Oct 2009
Posts: 35
Location: Chennai

PostPosted: Thu Jan 07, 2010 10:30 pm
Reply with quote

not only because of the DISP parm...
i could see the records in theoutput file after converting into flat file
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 Jan 07, 2010 10:37 pm
Reply with quote

Are the records fix length or variable length?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Fri Jan 08, 2010 6:24 am
Reply with quote

pecram24, please answer Bill's questions rather than piece meal bits of info here and there. If you expect help, you must provide the answers to the questions posed to you.
Back to top
View user's profile Send private message
pecram24

New User


Joined: 12 Oct 2009
Posts: 35
Location: Chennai

PostPosted: Fri Jan 08, 2010 10:04 am
Reply with quote

yes the records are FIXED length records..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Jan 08, 2010 11:44 pm
Reply with quote

Hello,

That does not answer Bill's questions. . .
Back to top
View user's profile Send private message
Chirantan Banerjee

New User


Joined: 08 Oct 2009
Posts: 12
Location: Kolkata, India

PostPosted: Fri Feb 12, 2010 4:52 pm
Reply with quote

What exactly is your output file type - first you say that it is NOT a VSAM then you are saying that you needed to convert it to a flat file to view it .... this is confusing
Quote:
The output file is NOT a VSAM file....

Quote:
not only because of the DISP parm...
i could see the records in theoutput file after converting into flat file

If the original o/p file is a VSAM, then please follow Bill's suggestion - it would definitely help. If it's not a VSAM even then try it out - it might help.
Quote:
Could you add the the secondary status-codes to the program, which consists of a group-level, with three elementary binary-halfwords? This is defined in the COBOL manual and could pinpoint your error.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top