Author: enrico-sorichetti
Subject: Reply to: JCL to Set Return code based on DB2 SQL query result
Posted: Thu Mar 16, 2017 1:27 pm (GMT 5.5)
nope![icon_biggrin.gif]()
it was used in prehistoric ages for performance reason when calling a subroutine
the return code would be a 4 bytes offset into a branch table
( faster than doing the comparison )
and convention percolated upstream
( as I was told - once upon a time - by somebody working at OS development )
_________________
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort![icon_cool.gif]()
Subject: Reply to: JCL to Set Return code based on DB2 SQL query result
Posted: Thu Mar 16, 2017 1:27 pm (GMT 5.5)
Quote: |
Perhaps IBM uses that convention to allow the user flexibility to use the numbers in between |
nope

it was used in prehistoric ages for performance reason when calling a subroutine
the return code would be a 4 bytes offset into a branch table
( faster than doing the comparison )
and convention percolated upstream
( as I was told - once upon a time - by somebody working at OS development )
_________________
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
