The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Terminal And Cron Job Return Different Status Code isaac_ho Shell Programming and Scripting 1 06-02-2008 01:12 AM
How to capture status code and echo a message laknar Shell Programming and Scripting 12 04-30-2008 11:13 AM
Accessing microsoft access from C program beilstwh High Level Programming 2 10-26-2006 06:29 PM
Status code of last command execution tipsy Shell Programming and Scripting 1 07-21-2006 02:14 PM
i want a UDP Client receiving program Nirmala IP Networking 1 06-10-2005 04:46 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-28-2003
bigdawg bigdawg is offline
Registered User
  
 

Join Date: Aug 2003
Location: Peoria, IL
Posts: 5
Angry Receiving status code 39 when accessing files through program.

I'm working on a project to extract some information from archive file. I ran my program through MFCobol animator and I'm receiving
a status code of 39(file not compatible) when opening the file for input. I have tried just about everything, rebuild, convert, etc. but
I receive the same message. Any help would be appreciated. My system information is below:

HP-UX n1rims02 B.10.20 A 9000/899 1651451331 two-user license

Micro Focus Cobol Version is:

Cobol/HP-UX HP35326 B.12.40 Copyright Hewlett-Packard Co. 1989-2003
V4.1 revision 30 build 10/10/2 G; 01700. Run Time System O1UPK/BMB/01240D

cobol v4.1.30-e
PRN=O1UPK/BML:8b.i1.13.04
PTI=NLS
PTI=Y2K
  #2 (permalink)  
Old 08-28-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,122
It's been about 30 years since I last programmed in COBOL and I have idea what a COBOL animator is. So take this with a grain of salt.

But I would believe the error message. Either the program that is opening the file has defined it differently than the program that wrote it or the file has been corrupted. Unless the failing program has worked before, I would strongly suspect the former.
  #3 (permalink)  
Old 08-28-2003
bigdawg bigdawg is offline
Registered User
  
 

Join Date: Aug 2003
Location: Peoria, IL
Posts: 5
Question Thanks for the reply, is there way to recreate the data file from the index.

Thank for for taking the time to post. Is there a UNIX utility that could create a new copy of the file that would contain the correct structure? I think that all I need to do is re-create the data portion and do a rebuild to create the index. Any ideas?
  #4 (permalink)  
Old 08-28-2003
bigdawg bigdawg is offline
Registered User
  
 

Join Date: Aug 2003
Location: Peoria, IL
Posts: 5
Question Thanks for the reply, is there way to recreate the data file from the index.

Thank for for taking the time to post. Is there a UNIX utility that could create a new copy of the file that would contain the correct structure? I think that all I need to do is re-create the data portion and do a rebuild to create the index. Any ideas?
  #5 (permalink)  
Old 08-28-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,122
I would doubt that your data file was created by a unix utility. I would assume that another cobol program created it. I don't know what tools come with the microfocus cobol compiler. Bear in mind that I have used COBOL85, nor COBOL74 for that matter.

I do know HP-UX fairly well, and I've never heard of a HP-UX program to rebuild indexes for cobol indexed files.

Are you sure that you don't simply have a bug in the program that is trying to read the data? Has it run before? Does it now run on other data files? If both of those questions get a "yes", then you probably do have a corrupted data file. In that case, you need to restore the file from backup, or recreate it from scratch.

Um, and you don't need to post twice. Once will do it.
  #6 (permalink)  
Old 08-28-2003
bigdawg bigdawg is offline
Registered User
  
 

Join Date: Aug 2003
Location: Peoria, IL
Posts: 5
Thumbs up Thanks for the info....Sorry about the double posts, fat fingers.

Thanks for the information, the program has been running in production for about a year. So I agree with you that there is a problem with the data file. Other than the command fh -i is that a command that will display all characteristics of the file? Like what operating system created, time date, etc.
  #7 (permalink)  
Old 08-29-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,122
I have never heard of fh so that must be a cobol thing of some kind. There are only the obvious unix commands like ls and od. ls can tell you about the inode and od can display the value of every byte in the file.
Closed Thread

Bookmarks

Tags
unix commands

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 12:00 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