Abends when I do a TBCREATE (first ISPF-command)
Start function this way
Call Rexx:
res = SQL2TABT(restab,sql,max)
SQL2TABT(rexx):
1. Writing the 3 arguments to a dataset (shall be accept:ed in Cobol-program, much easier to parse)
2. call DB2STRT SQL2TAB
DB2STRT (rexx):
program = strip(arg(1))
plan = program
ssid = 'DB2U'
parms = ''
newstack
queue "RUN PROGRAM("program")" ,
" PLAN("plan")" ,
" PARMS("parms")"
queue "END"
queue ""
address TSO "DSN SYSTEM("ssid")"
dsnrc = rc
if dsnrc <> 0 then
say 'DSN command failed. rc='dsnrc
delstack
return 0
plan = program
ssid = 'DB2U'
parms = ''
newstack
queue "RUN PROGRAM("program")" ,
" PLAN("plan")" ,
" PARMS("parms")"
queue "END"
queue ""
address TSO "DSN SYSTEM("ssid")"
dsnrc = rc
if dsnrc <> 0 then
say 'DSN command failed. rc='dsnrc
delstack
return 0
Doing a couple of DB2-commands and then...
Everything works until my Cobol-program trying to issue a ISPF-command.
SQL2TAB 09:04:09,09 ta-tbcreate
Trying TBCREATE
System abend code 0C4, reason code 00000016.
Abend in host command DSN or address environment routine TSO.
System abend code 0C4, reason code 00000016.
Abend in external subroutine DB2STRT.
System abend code 0C4, reason code 00000016.
Abend in external function SQL2TABT.
***
Trying TBCREATE
System abend code 0C4, reason code 00000016.
Abend in host command DSN or address environment routine TSO.
System abend code 0C4, reason code 00000016.
Abend in external subroutine DB2STRT.
System abend code 0C4, reason code 00000016.
Abend in external function SQL2TABT.
***
Recommendation of how to run this
//Lasse