That is a number not a string. When a script exits, the shell can return a maximum of an 8 bit number, not a string - ie 0-255 (unsigned). See man 2 wait (what COBOL calls when it fork/execs your script process). Write the return value to a file, then read it in from your COBOL.
Hi ,
Could anyone please tell me about the whole procedure for compiling, linking the cobol program on unix platform. As i am mainframe guy and very new to unix, any help will be very appriciated,
Regards,
-Vinit (2 Replies)
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)
Hi,
I am working on a Mainframe to UNIX replatforming project.
we are facing problems with COBOL COMP-3 fields. We are using the Mainframe emulator software to download the data which has COMP-3 fields and using it as input to the same COBOL programs which were copied from Mainframe and did the... (1 Reply)
When I execute a COBOL load module, I get the following error:
$ 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... (3 Replies)
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)
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)
Dear All,
while installing mfcobol in sco open unix 5 in piv m/cs, when run
#sh ./install
this error massage is comming
load error file lmfnewdb
error code 198 pc=0 call=-1 seg=0
198 load failor
chmod warrning can not acess /opt/lib/mflmf/mflmfdb no such file or directory (error-2)... (0 Replies)
Hello,
I have got a specific requirement of running a COBOL code on EL5. Not sure if GCC includes the compiler for COBOL.
Currently what I can think of installing openCOBOL in EL5 server and hand it over to developers.
From what I think need to do is, compile COBOL code using openCOBOL ... (5 Replies)
Hi guys,
i used the call "sytem" using ... in a cobol program.
At the moment i stoped at an empasse, how cam I retrive the execution's result of unix command?
Explenation, I made an 'pwd' command, and I must to have the directory inside the program.
How can have this result? (2 Replies)
Discussion started by: Prosy60
2 Replies
LEARN ABOUT PLAN9
wait
WAIT(2) System Calls Manual WAIT(2)NAME
wait - wait for a process to exit
SYNOPSIS
#include <u.h>
#include <libc.h>
int wait(Waitmsg *w)
DESCRIPTION
Wait causes a process to wait for any child process (see fork(2)) to exit. It returns the pid of a child that has exited and fills in w
with more information about the child. W points to a Waitmsg, which has this structure:
typedef
struct Waitmsg
{
char pid[12]; /* of loved one */
char time[3*12]; /* of loved one & descendants */
char msg[ERRLEN];
} Waitmsg;
Pid is the child's process id. The time array contains the time the child and its descendants spent in user code, the time spent in system
calls, and the child's elapsed real time, all in units of milliseconds. All integers in a Waitmsg are formatted as right-justified textual
numbers in 11-byte fields followed by a blank. Msg contains the message that the child specified in exits(2). For a normal exit, msg[0]
is zero, otherwise msg is prefixed by the process name, a blank, the process id, and a colon.
If there are no more children to wait for, wait returns immediately, with return value -1.
SOURCE
/sys/src/libc/9syscall
SEE ALSO fork(2), exits(2), the wait file in proc(3)DIAGNOSTICS
Sets errstr.
WAIT(2)