Error! file status 30 need assist...



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Error! file status 30 need assist...

Postby xav3rius » Wed Jul 10, 2013 7:12 pm

Dear all senior and master..
Kindly please assist, during my cobol programming, i getting error file status = 30 during write the record..

According with document :
30 is "The I/O statement was unsuccessfully executed as the result of a boundary violation for a sequential file or as the result of an I/O error, such as a data check parity error, or a transmission error." .. what does it mean ?

Appreciate with your help.
Thanks.
xav3rius
 
Posts: 4
Joined: Wed Jul 10, 2013 7:01 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Error! file status 30 need assist...

 

Re: Error! file status 30 need assist...

Postby Akatsukami » Wed Jul 10, 2013 7:30 pm

An attempt to write outside the defined boundaries of a data set or record (e.g., by changing the record length and trying to rewrite it). Post the code fragment writing the record and we may be able to be more specific.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1056
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Error! file status 30 need assist...

Postby xav3rius » Wed Jul 10, 2013 7:38 pm

Akatsukami wrote:An attempt to write outside the defined boundaries of a data set or record (e.g., by changing the record length and trying to rewrite it). Post the code fragment writing the record and we may be able to be more specific.


thanks Akatsukami..
is that possible because file size also ?
fyi : the file have key.. but if i check key is not unique and can duplicate. I will post the code tomorrow, because the code in my office.. :(
xav3rius
 
Posts: 4
Joined: Wed Jul 10, 2013 7:01 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Error! file status 30 need assist...

Postby Akatsukami » Wed Jul 10, 2013 7:48 pm

xav3rius wrote:is that possible because file size also ?

That is indeed possible; that is why I wish to see the code, to help narrow down the possibilities.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1056
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Error! file status 30 need assist...

Postby Robert Sample » Wed Jul 10, 2013 10:23 pm

The error message you quoted indicates a sequential file. Your post mentions a key. Sequential files do not have keys. Is the file sequential, relative, PDS, or VSAM (and if VSAM is it ESDS, RRDS, KSDS, or one of the other types)?
Robert Sample
Global moderator
 
Posts: 3460
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 244 times

Re: Error! file status 30 need assist...

Postby c62ap90 » Fri Jul 12, 2013 6:16 pm

Hmmm, I thought a File Status 30 was "No further information'.
For boundary violations on a sequential file WRITE, it could be simply you are Out Of Space. Did you check this?
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 6 times

Re: Error! file status 30 need assist...

Postby NicC » Fri Jul 12, 2013 6:43 pm

OTOH an 'out of space' should lead to an Sx37 abend which has not been mentioned (yet?).
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2758
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 110 times

Re: Error! file status 30 need assist...

Postby c62ap90 » Fri Jul 12, 2013 9:26 pm

NicC wrote:OTOH an 'out of space' should lead to an Sx37 abend which has not been mentioned (yet?).

That's true.

Since "key" was mentioned, my gut feeling is this is a VSAM file and got a boundary violation on the WRITE (status 34 - out of space).

Hard to help people when you cannot get the information (correct information).
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 6 times

Re: Error! file status 30 need assist...

Postby Akatsukami » Fri Jul 12, 2013 10:00 pm

c62ap90 wrote:Since "key" was mentioned, my gut feeling is this is a VSAM file and got a boundary violation on the WRITE (status 34 - out of space).

To the left, the TS says
the file have key.. but if i check key is not unique and can duplicate.

suggesting either that heesh is accessing a KSDS through an AIX (although I don't think you can do this for a write) or that heesh is using "key" in the generic sense, as we would discuss "keys" on a data set to be sorted. In any case, the TS hasn't been back since heesh assured us that heesh woiuld post the code realsoonnow, so I daresay that we can write this off.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1056
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Error! file status 30 need assist...

Postby xav3rius » Sat Jul 13, 2013 4:35 pm

Akatsukami wrote:
c62ap90 wrote:Since "key" was mentioned, my gut feeling is this is a VSAM file and got a boundary violation on the WRITE (status 34 - out of space).

To the left, the TS says
the file have key.. but if i check key is not unique and can duplicate.

suggesting either that heesh is accessing a KSDS through an AIX (although I don't think you can do this for a write) or that heesh is using "key" in the generic sense, as we would discuss "keys" on a data set to be sorted. In any case, the TS hasn't been back since heesh assured us that heesh woiuld post the code realsoonnow, so I daresay that we can write this off.


Thanks all,
finally solve .. i just refresh the module.. it's work again.
thanks all.. :)
xav3rius
 
Posts: 4
Joined: Wed Jul 10, 2013 7:01 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post