The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cobol File Status 41 & 42 WS-NFG UNIX for Dummies Questions & Answers 2 10-12-2007 09:23 AM
Installing RedHat 8.0 onto Dell PowerEdge SC1425 - hdc: status error: status = 0x58 fishsponge Red Hat 5 07-14-2006 03:53 PM
check the status and send an email with status isingh786 Shell Programming and Scripting 3 12-29-2005 07:22 PM
Couldn't open status file /var/samba/STATUS.LCK macdonto UNIX for Dummies Questions & Answers 2 08-08-2001 09:42 AM
file status during FTP sean76 UNIX for Dummies Questions & Answers 3 07-01-2001 11:06 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-02-2006
jbrubaker jbrubaker is offline
Registered User
  
 

Join Date: Jun 2006
Location: New York
Posts: 25
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 (permalink)  
Old 08-02-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,800
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 (permalink)  
Old 08-03-2006
jbrubaker jbrubaker is offline
Registered User
  
 

Join Date: Jun 2006
Location: New York
Posts: 25
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 (permalink)  
Old 08-03-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,800
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0