Skip to main content
TheodoreAivazian
Mar 29, 2025 1:50 PM UTC
Question

i have never seen this issue before IN 50 YEARS.

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

    2 replies

    John Jenkins
    Participating Frequently
    Mar 29, 2025 9:27 PM UTC

    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

    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

     

    JJ
    Mike Rajkowski
    Rocketeer
    Apr 14, 2025 12:12 PM UTC

    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

    Theodore,

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