Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

File status 96 - File system not available

46 views
Skip to first unread message

m8java

unread,
Jan 14, 2003, 8:03:54 PM1/14/03
to
Hi coboler,

my problem occurs in a tiny program, that runs on the host very fine.
To run it on the AIX platform I've compiled with cob2, IBMs Cobol Set
for AIX version 1.1. Now I get in the open-routine a file status 96
and nowhere I found any useful information about this message. Only
in the COBOL Language Reference on page 274 exists a table with brief
hints for each file status:

96 For VSAM file under OS/390 and VM: An OPEN statement with the
OUTPUT or EXTEND phrase was attempted for an optional file, but no DD
statement was specified for the file.
For QSAM file under OS/390 and VM: An OPEN statement with the
OUTPUT or EXTEND phrase was attempted for an optional file, but no DD
statement was specified for the file and the CBLQDA(OFF) run-time option
was specified.
Under AIX, OS/2, and Windows: File system not available.
=========

How I can get the file system available?

Here is a snipet of the cobol source:

FILE-CONTROL.
SELECT LISTE1 ASSIGN TO 'STL-LISTE1'
FILE STATUS IS STATUS-BYTES.
...
DATA DIVISION.
FILE SECTION.
FD LISTE1
RECORDING MODE IS F.
01 DL1-ZEILE.
05 DL1-VSZ PIC X.
05 DL1-DATEN PIC X(132).

01 QLDD-ZEILE.
05 PIC X(001).
05 QLDD-DATEN PIC X(132).
...
OPEN-ROUTINE SECTION.
OPEN OUTPUT LISTE1
...

Also I've tried an alternate construction in the FILE-CONTROL.
Coding

FILE-CONTROL.
SELECT LISTE1 ASSIGN USING 'STL-LISTE1'
FILE STATUS IS STATUS-BYTES.

will result in a severe compiler error IGYDS0093-S:

IGYDS0093-S "'STL-LISTE1'" was found in the "ASSIGN" clause.
The clause was discarded.

And again there are nowhere useful documentation for such
error numbers.

The last question to the Cobol experts:
When I have to use the STL file system?
Maybe the file 'LISTE1' has to be a VSAM file.
However the file 'LISTE1' should be created
by the cobol program and located on the AIX
file system.

Thanks

Klaus Duttle

Richard Plinston

unread,
Jan 15, 2003, 9:25:11 AM1/15/03
to
m8java wrote:

> my problem occurs in a tiny program, that runs on the host very fine.
> To run it on the AIX platform I've compiled with cob2, IBMs Cobol Set
> for AIX version 1.1.

Isn't that a variety of MicroFocus ?

> Now I get in the open-routine a file status 96

Status codes 9x are vendor specific. If it is MF then the '6' is the ASCII
character for decimal 36 and this means: 'File already exists'. This may
be a permission issue in that the file exists but you do not have write
access to it, or to the directory that this is in.

AIX is a variety of Unix and you have to take notice of users, groups and
permissions.


> Also I've tried an alternate construction in the FILE-CONTROL.
> Coding
>
> FILE-CONTROL.
> SELECT LISTE1 ASSIGN USING 'STL-LISTE1'
> FILE STATUS IS STATUS-BYTES.

What is 'ASSIGN USING' supposed to be ?


Alister Munro

unread,
Jan 14, 2003, 8:33:12 PM1/14/03
to
Is this '96' a two byte variable (h3936 or h3906) taken from the
file status ? h3906 would be 'unable to write to a read-only file'
on the PC. I have no description for h3936 again on the PC.

"m8java" <klaus....@online.de> wrote in message
news:ba4d0b76.03011...@posting.google.com...

William M. Klein

unread,
Jan 15, 2003, 1:11:24 PM1/15/03
to
"Richard Plinston" <rip...@Azonic.co.nz> wrote in message
news:b02dk3$1f2$1...@aklobs.kc.net.nz...

> m8java wrote:
>
> > my problem occurs in a tiny program, that runs on the host very fine.
> > To run it on the AIX platform I've compiled with cob2, IBMs Cobol Set
> > for AIX version 1.1.
>
> Isn't that a variety of MicroFocus ?

No, CobolSet is *not* an Micro Focus based product. (There is a Micro Foc
us product for AIX - and IBM used to "repackage" it as an IBM product but
that hasn't been true for MANY years)

--
Bill Klein
wmklein <at> ix.netcom.com


William M. Klein

unread,
Jan 15, 2003, 1:16:38 PM1/15/03
to
1) I think you will find that "ASSIGN USING" requires a data-name following
the USING - while ASSIGN TO can be followed by a literal.

2) In general, have you read the section
"Identifying Files to the Operating System"

on page 17 of the COBOL Set Programming Guide - available on line at:

http://www-3.ibm.com/software/ad/cobol/aix/library/

--
Bill Klein
wmklein <at> ix.netcom.com

"m8java" <klaus....@online.de> wrote in message
news:ba4d0b76.03011...@posting.google.com...

0 new messages