Receiving status code 39 when accessing files through program.


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Receiving status code 39 when accessing files through program.
# 1  
Old 08-28-2003
Network 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  
Old 08-28-2003
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  
Old 08-28-2003
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  
Old 08-28-2003
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  
Old 08-28-2003
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. Smilie
# 6  
Old 08-28-2003
MySQL 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  
Old 08-29-2003
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to see the status of all the ftp put & get files logs and curent ftp transfer status ?

How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies

2. Shell Programming and Scripting

How to end a host concurrent program in WARNING status?

Hi All, I have a requirement to make a oracle concurrent program end with warning based on a given condition. If the condition is true, the concurrent program should end with completed warning status. The host program I am using is a shell script that checks if a file exists. ... (2 Replies)
Discussion started by: megha2525
2 Replies

3. Shell Programming and Scripting

Read files in shell script code and run a C program on those files

HI, I am trying to implement a simple shell script program that does not make use of ls or find commands as they are quite expensive on very large sets of files. So, I am trying to generate the file list myself. What I am trying to do is this: 1. Generate a file name using shell script, for... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies

4. Shell Programming and Scripting

Receiving 'ambiguous redirect' when trying to run command against multiple files

I came across the command string on https://www.unix.com/shell-programming-scripting/141885-awk-removing-data-before-after-pattern.html which was what I was looking for to be able to remove data before a certain pattern. However, outputting the result to a file seems to work on an individual basis... (4 Replies)
Discussion started by: HLee1981
4 Replies

5. UNIX for Dummies Questions & Answers

302 server status code to 301/404 server status code

Hello, Sorry for my english. I have an arcade site. mydomain.com/game.html If database has the game name is good. mydomain.com/fd43f54.html if database has not the game name redirect to mydomain.com by 302 error code. if database has not the game name i want a 301/404 error code and no... (0 Replies)
Discussion started by: hoo
0 Replies

6. Programming

how to check port binding in pcap receiving program?

hi, I am writing one packet receiving program using libpcap library. Now, I want to check port is already using or not. how to check in receiver program.. If normal program, bind return value we can able to check the port using or not. but, in pcap program how can i check? thank... (1 Reply)
Discussion started by: ram.sj
1 Replies

7. Shell Programming and Scripting

Accessing variable from awk program in shell

Hi, I want to access a variable outside the awk program. My program is as below:- I can not access the exact value of k (See the last line of the program). #!/usr/bin/sh j=10 k=1 #k is declared outside awk awk ' BEGIN { i=1; j1="'"$j"'" printf("\n ## Value of j1 is %d ##", j1); ... (2 Replies)
Discussion started by: shouvik.mitra
2 Replies

8. Shell Programming and Scripting

problem accessing Multiple Variables from C Program to a Shell script

program name--test #!/bin/bash output1=`/home/user/a.c` output2=`/home/user/a.c` k=`$output1 + 1` m=`$output2 + 1` echo $k echo $m --------------------------------------------------------------------------- prgram name--a.c #include<stdio.h> int main() (1 Reply)
Discussion started by: sameworld1980
1 Replies

9. Programming

Accessing microsoft access from C program

I have read a number of references to libraries that could be linked into a C program to access various databases. I have been tasked with writing an oracle library that would be able to access an Microsoft access database. The oracle database is running on a Unix server and would have to access... (2 Replies)
Discussion started by: beilstwh
2 Replies

10. IP Networking

i want a UDP Client receiving program

Hi I want a UDP client receiving program. Here is the scenario. The client has to listen to the UDP server and has to acknowledge back on receiving data from the server. Can anyone help me out. regards, Nirmala (1 Reply)
Discussion started by: Nirmala
1 Replies
Login or Register to Ask a Question