kerravon86@yahoo.com.au [hercules-os380]
2018-06-15 22:03:29 UTC
Some time ago I made this change:
- L R2,TCBJSCB
- USING IEZJSCB,R2
- SLR R3,R3
- ICM R3,B'0011',JSCBTJID
- ST R3,TYPE non-zero means TSO, 3rd parm to START
+* Find out if this is TSO or not
+ L R3,PSAAOLD-PSA get address of my ASCB
+ USING ASCB,R3
+ ICM R4,B'1111',ASCBASXB
+ BZ FINTSO
+ USING ASXB,R4
+ ICM R5,B'1111',ASXBLWA
+FINTSO DS 0H
+ ST R5,TYPE non-zero means TSO, 3rd parm to START
to detect whether this is a TSO environment
or not.
I believe longer ago than that I used to detect
the parameter string to see if there were 2
x'00'.
I have found a problem, probably with the
new code. When I do:
call 'sys2.linklib(pdptest)'
from my TSO session, it abends in IKJPUTL,
but I am not expecting PUTLINE to be used
in that circumstance. I expect that when
"call" is used, it should go through the same
logic as batch.
So what should I do now? Go back to the
JSCBTJID or go back to detecting the
parm string or something else?
Thanks. Paul.
- L R2,TCBJSCB
- USING IEZJSCB,R2
- SLR R3,R3
- ICM R3,B'0011',JSCBTJID
- ST R3,TYPE non-zero means TSO, 3rd parm to START
+* Find out if this is TSO or not
+ L R3,PSAAOLD-PSA get address of my ASCB
+ USING ASCB,R3
+ ICM R4,B'1111',ASCBASXB
+ BZ FINTSO
+ USING ASXB,R4
+ ICM R5,B'1111',ASXBLWA
+FINTSO DS 0H
+ ST R5,TYPE non-zero means TSO, 3rd parm to START
to detect whether this is a TSO environment
or not.
I believe longer ago than that I used to detect
the parameter string to see if there were 2
x'00'.
I have found a problem, probably with the
new code. When I do:
call 'sys2.linklib(pdptest)'
from my TSO session, it abends in IKJPUTL,
but I am not expecting PUTLINE to be used
in that circumstance. I expect that when
"call" is used, it should go through the same
logic as batch.
So what should I do now? Go back to the
JSCBTJID or go back to detecting the
parm string or something else?
Thanks. Paul.