COBOL file status 39


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers COBOL file status 39
# 1  
Old 08-02-2006
COBOL file status 39

When I execute a COBOL load module, I get the following error:

HTML Code:
$ a.out
IWZ200S  Error detected during OPEN for file 'ABE-INPUT'. File status is: 39.
         Message routine called from offset 0x38 of routine iwzWriteERRmsg.
         iwzWriteERRmsg called from offset 0x3c4 of routine _iwzCallUseProc.
         _iwzCallUseProc called from offset 0xaf0 of routine _iwzBSeqOpen.
         _iwzBSeqOpen called from offset 0x2ec of routine _iwzGenericOpen.
         _iwzGenericOpen called from offset 0x25c of routine ABEPREP.
IWZ901S  Program exits due to severe or critical error.

IOT/Abort trap(coredump)
This probably means the length of the file is different than what I have coded for (132).

This program runs sucessfully on an AS400 so I know the length is correct.

The file ABE-INPUT has a record lenght of 132 but obviously, UNIX does not think so. How can I tell what UNIX thinks it is?

Thanks in advance.
# 2  
Old 08-02-2006
Errors like that can get snarfled on UNIX.

On unix the first thing to check is datafile permissions, and does it actually exist?

Next thing is the SELECT statement.
Code:
          SELECT MSGTEXT-FILE ASSIGN TO MSGTEXT
                  ORGANIZATION IS LINE SEQUENTIAL.

IF you have a SELECT with ASSIGN like this, you need to have an enviromnent variable
like this:
Code:
MSGTEXT=/path/to/actual_datafile

And if it is a file length problem, you need to be sure the real datafile does not have carriage control characters in it for fixed record length (LRL) files.
Otherwise you have to use something like the above SELECT stsatement to be able to read the file. I really think it's one of the first two things I mentioned.
# 3  
Old 08-03-2006
I changed my assign statement from

SELECT ABE-INPUT ASSIGN TO STL-ABEMTHFULL

to

SELECT ABE-INPUT ASSIGN TO ABEMTHFULL

This worked.

Thanks a bunch.

I cant believe how fast this machine is. It processed 660,000 132 byte records in about 10 seconds. This in a program that contains some pretty decent tabling. I'm impressed.

Do you know anything about running the IDEBUG debugger?
# 4  
Old 08-03-2006
No. But you should consider making sure all of the cobol compiles correctly i.e., better than rc=8.

You can use DISPLAY statements placed strategically to get a lot of "debug" work done.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

How to track table status delete/update/insert status in DB2 V10 z/os?

Dear Team I am using DB2 v10 z/os database . Need expert guidance to figure out best way to track table activities ( Ex Delete, Insert,Update ) Scenario We have a table which is critical and many developer/testing team access on daily basis . We had instance where some deleted... (1 Reply)
Discussion started by: Perlbaby
1 Replies

2. Shell Programming and Scripting

Calling script from RM cobol and returning value to cobol

Is there a way you can return a value from a script that is called from a rm cobol program... 01 WS-COMD-LINE-PGM X(39) value sh ./getUserId.sh 12345" 01 WS-RETURN-SYS-CODE PIC 9(8). CALL "SYSTEM" USING WS-COMD-LINE-PGM GIVING WS-RETURN-SYS-CODE. ... (1 Reply)
Discussion started by: pavanmp
1 Replies

3. Programming

cobol crn programme run on express cobol as .gnt

can i run .crn programme in express cobol which support to .gnt programme .... Plz tell me solution (2 Replies)
Discussion started by: bibi
2 Replies

4. Programming

cobol programme

I have some compile programme .crn now I want to run .crn programme on express cobol which allow only *.gnt programme any solution to run *.crn programme (0 Replies)
Discussion started by: bibi
0 Replies

5. HP-UX

Error in a cobol executable file

Hi, when i try to run an executable on a HP UX machine i get the following error /usr/lib/..../dld.so Unsatisfied code symbol '_tMca100b' in load module .... The exe is a cobol program. can somebody tell why? Thanks. (2 Replies)
Discussion started by: vovan
2 Replies

6. UNIX and Linux Applications

Rm-cobol 85

Does anyone use the following Cobol compiler: RM/COBOL-85 Compiler - Version 5.15.00 for SCO Unix 386. I am looking for a file that might be part of the distribution named "osmain.o" Thanks. (0 Replies)
Discussion started by: jgt
0 Replies

7. UNIX for Dummies Questions & Answers

Cobol File Status 41 & 42

I'm new to coding on Unix but have coded with COBOL on mainframe for a number of years. This is driving me nuts. My select clause is like so: SELECT GRPFILE ASSIGN TO EXTERNAL DISK WS-GRPFILE ACCESS IS SEQUENTIAL STATUS IS... (2 Replies)
Discussion started by: WS-NFG
2 Replies

8. Red Hat

Installing RedHat 8.0 onto Dell PowerEdge SC1425 - hdc: status error: status = 0x58

I have successfully installed RedHat 8.0 onto a Dell PowerEdge SC1425 today. This server has two SATA hard drives, and an IDE DVD-ROM drive. Using the following kernel parameters, i successfully installed across both hard drives from CD: ide0=0x1f0,0x3f6,14 vga=791 resolution=1024x768 expert... (5 Replies)
Discussion started by: fishsponge
5 Replies

9. Gentoo

COBOL on linux?!

Hello guys, I'm searching for a good COBOL compiler which runs on linux. In fact I have found one but I'm really lost with its installation!! I don't know how to install it and how it works. In fact I'm not so good in linux and I always have problems with installation, but this time it's... (1 Reply)
Discussion started by: HSN
1 Replies

10. UNIX for Dummies Questions & Answers

Couldn't open status file /var/samba/STATUS.LCK

I believe i have most of samba configured right but i get this error each time time try to run it. I was given suggestion that i touch the file, i did, but i still cannot rid myself of this error. Any suggestions (2 Replies)
Discussion started by: macdonto
2 Replies
Login or Register to Ask a Question