Your example program simply writes data to STDOUT, which in your configuration is not configured.
It most likely tried to write that to the OUT File PATHLOG, and failed due to sharing.
In any case, it would have terminated on the 'return 0' statement and not continue running.
Another point, that sample program is not written as a pathway server. Your server configuration appears to have been for a COBOL program.
To run as a server, the C program needs to interact with $RECEIVE and pay attention to opens from processes.
Step 5 of your 'run' script is the only one that ran the program normally, you should probably have seen the 'Hello world' output there.
In addition your compilation script was overly complicated, since it took a 'runnable' executable (execo) and then rebound it.
You should also consider using a 'Native' compiler, which one depends on which system you're running on.
It's completely unclear what you are trying to accomplish, this doesn't appear to be related to any conceivable job on a NonStop?
On Fri, 10 Jun 2016 01:45:02 -0700 (PDT), sola lee <
solalee...@gmail.com> wrote:
>Helo to all the SIFUs of HPNS and Tandem,
>
>I am a new kid on the block playing with Tandem and C program.
>
>Basically trying to create a simple Hello World program in C (HELOC)
>Then setup a simple pathway to run that hello world (HELOX)
>that is all :)
>
>I don't know how to get it to run :)
>
>
>
>My C program
>=======================================
>#include <stdio.h>
>int main(int argc, char* argv[]){
> printf("\n\nHello World\n\n");
> return 0;
>}
>=======================================
>
>
>
>
>My compilation script (I copied and paste from somewhere)
>=======================================
>C /IN HELOC/HELOO; RUNNABLE
>
>#SET #INLINEPREFIX +
>BIND/INLINE/
>+ SELECT CHECK PARAMETER OFF
>+ SET SYSTYPE GUARDIAN
>+ SELECT LIST * OFF
>
>+ ADD * from HELOO
>
>+ SELECT SEARCH $SYSTEM.SYSTEM.CWIDE
>+ SELECT RUNNABLE OBJECT ON
>+ SET HEAP 10 PAGES
>+ SET SAVEABEND ON
>+ BUILD HELOX!, SATISFY ON
>+ EXIT
>=======================================
>
>
>
>
>My pathway script I call it START (Again I copied and paste from somewhere)
>
>=======================================
>VOLUME $UJIAN.TEST
>CLEAR ALL
>PURGE OTTPKLOG
>PURGE PATHCTL
>PURGE PATHLOG
>CREATE PATHLOG
>PATHMON /NAME $XXX, NOWAIT, OUT PATHLOG, HIGHPIN ON, PRI 162, CPU 0/1
>PATHCOM /IN $UJIAN.TEST.CONFIG, CPU 0, OUT OTTPKLOG / $XXX
>
>PATHCOM $XXX; START SERVER *
>=======================================
>
>
>
>
>
>And the CONFIG file for the PATHCOM
>(And yes you guessed it correct I copied and paste from somewhere)
>I have some vague idea why I put those values up but every very minimal
>
>=======================================
>SET PATHMON BACKUPCPU 1
>SET PATHWAY MAXTCPS 10
>SET PATHWAY MAXEXTERNALTCPS 1
>SET PATHWAY MAXTERMS 10
>SET PATHWAY MAXSERVERCLASSES 10
>SET PATHWAY MAXSERVERPROCESSES 50
>SET PATHWAY MAXSTARTUPS 50
>SET PATHWAY MAXASSIGNS 500
>SET PATHWAY MAXLINKMONS 10
>SET PATHWAY MAXPARAMS 500
>SET PATHWAY MAXDEFINES 200
>SET PATHWAY SECURITY "G"
>SET PATHWAY OWNER 22,100
>START PATHWAY COLD !
>
>[Server Setting]
>
>RESET SERVER
>SET SERVER PROGRAM $UJIAN.TEST.HELOX
>SET SERVER HOMETERM $TCO1
>SET SERVER DEBUG OFF
>SET SERVER CREATEDELAY 1 SECS
>SET SERVER DELETEDELAY 2 MINS
>SET SERVER MAXLINKS 40
>SET SERVER LINKDEPTH 1
>SET SERVER MAXSERVERS 3
>SET SERVER NUMSTATIC 3
>SET SERVER PROCESS $XXX1
>SET SERVER PROCESS $XXX2
>SET SERVER PROCESS $XXX3
>SET SERVER PRI 150
>SET SERVER HIGHPIN ON
>SET SERVER TMF OFF
>SET SERVER (ASSIGN MESSAGE-LOG-PREFIX, $UJIAN.TEST.MLOG)
>SET SERVER (ASSIGN SCE-LOG-FILE, $UJIAN.TEST.PKILOG)
>SET SERVER (ASSIGN PERF-DATA-FILE, $UJIAN.TEST.PRFDAT)
>ADD SERVER XXXOBJ
>
>=======================================
>
>
>
>
>My close script to kill of the pathway
>(And yes again I copied and paste from somewhere)
>=======================================
>STOP $XXX1
>STOP $XXX2
>STOP $XXX3
>PATHCOM $XXX; STOP SERVER *
>PATHCOM $XXX; SHUTDOWN!, WAIT
>=======================================
>
>
>This is what I did to start the whole thing.
>
>1. Logon to Tandem (with putty) and enter id and password
>2. Go to $UJIAN.TEST
>3. OBEY COMPILE - get the runnable HELOX
>4. OBEY START - to setup the server and point it to HELOX (I think)
>5. RUN HELOX
>6. OBEY STOP
>
>
>
>
>
>MY OUTPUT
>========================================
>$UJIAN TEST 3> OBEY START
>VOLUME $UJIAN.TEST
>CLEAR ALL
>PURGE OTTPKLOG
>$UJIAN.TEST.OTTPKLOG File error 11
>PURGE PATHCTL
>$UJIAN.TEST.PATHCTL File error 11
>PURGE PATHLOG
>$UJIAN.TEST.PATHLOG File error 11
>CREATE PATHLOG
>PATHMON /NAME $XXX, NOWAIT, OUT PATHLOG, HIGHPIN ON, PRI 162, CPU 0/1
>PATHCOM /IN $UJIAN.TEST.CONFIG, CPU 0, OUT OTTPKLOG / $XXX
>
>PATHCOM $XXX; START SERVER *
>$Z977: SERVER XXXOBJ, STARTED
>$UJIAN TEST 4> RUN HELOX
>
>
>Hello World
>
>$UJIAN TEST 5> OBEY STOP
>STOP $XXX1
>Non-existent process $XXX1
>STOP $XXX2
>Non-existent process $XXX2
>STOP $XXX3
>Non-existent process $XXX3
>PATHCOM $XXX; STOP SERVER *
>PATHCOM $XXX; SHUTDOWN!, WAIT
>$UJIAN TEST 6>
>
>========================================
>
>
>
>I guess everything is working fine.... BUT why can't I see the $XXX1,$XXX2,$XXX3 file went the pathway server was running?
>
>Notice the Non-existent process error.
>
>Didn't my RUN HELOX activate at least ONE OF THEM?
>
>All your help will be greatly appreciated
>
>Thanks in advance.
>
>Sola Lee