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
> 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 ?
"m8java" <klaus....@online.de> wrote in message
news:ba4d0b76.03011...@posting.google.com...
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
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...