Rocket U2 | UniVerse & UniData

 View Only

 i have never seen this issue before IN 50 YEARS.

Theodore Aivazian's profile image
Theodore Aivazian posted 03-29-2025 14:03

example of code:

REQID STIND OF 8 DIGIT REQUEST NUMBERS, IE . 12345678

GTC1=LITERAL

FILEIN = /main/submain/submain/DESTINATION/REQID:".GTC1"

THE FILE DOESNT EXIST TO START

When i run this program as a standalone is works perfectly.

When i run this program as a PHANTOM it takes both else clauses

OPENSEQ FILEIN TO OUT.FILE ELSE

CREATE OUT.FILE ELSE

MSG = "CANNOT CREATE ":OUT.FILE

CRT MSG

STOP

END

END

RUNNING ON REDHAT LINUX 8.10 UNIVERSE REL 11.4.1.6020

PERMISSIONS HAVE BEEN CHECKED

USER:GROUP ARE CORRECT

any help would be greatly appreciated

John Jenkins's profile image
John Jenkins

Theodore,

I'm assuming you don't use GCI and have not changed PATH or the UniVerse uvsh to be script wrappers....

Put a pause at the start of the PHANTOM to give you time to identify the PID of the UV process. Once identified then from a separate UNIX command shell as Administrator (sudo is also fine) run strace -f -p PID 1>strace_PID.out 2>strace_PID.err - substituting the UniVerse PHANTOM PID throughout. This should be timed to be running BEFORE the PHANTOM wakes up and does any work.


Hopefully the ...err file will have detailed tracing - I'm laying odds on permissions or an environment variable.

ADDED: It would also be useful to put a check on STATUS() immediately after the file operations that fail - even a failure to fail should not be assumed a success.

Regards

JJ

 

Mike Rajkowski's profile image
Mike Rajkowski

Theodore,

Another option is to add ON ERROR clause to the OPENSEQ statement to get more information about what might be blocking the open.