Skip to content
Discussion options

You must be logged in to vote

When you call a command in a shell, any command, it always return a exit code (or exit status) telling the shell if it was successful or not. 0 means OK, anything else means something bad happened.

You can check it for yourself by opening a PASE terminal from Code for i and running these commands:

This will make echo print 0:

system "DSPLIB QGPL"
echo $?

This will make echo print 255:

system "DSPLIB QGLOPL"
echo $?

The special variable $? is the exit code of the last command run in the shell. So when the second system "DSPLIB..." call failed, its exit status was 255.

So, depending on how your specific build command or script ends, if it always return an exit code 0, the action will always…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SanjulaGanepola
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion For questions
2 participants
Converted from issue

This discussion was converted from issue #2868 on September 30, 2025 15:02.