Page 2 of 2

Re: REXX with DB2-- need help

PostPosted: Sun Mar 13, 2011 9:08 pm
by NicC
But BLING would only handle the commands that it knows otherwise it would blow out in some manner. If it was nice, just a standard -3 with a message saying command not understood.

Re: REXX with DB2-- need help

PostPosted: Mon Mar 14, 2011 2:39 am
by dick scherrer
Hello,

But BLING would only handle the commands that it knows otherwise it would blow out in some manner.
Well, that is what i would expect. . . If an environment is defined with some commands, only those commands should work.

Maybe there is something i am completely missing :?

Re: REXX with DB2-- need help

PostPosted: Mon Mar 14, 2011 10:29 am
by Akatsukami
NicC wrote:
environment is pretty much an arbitrary string


No it is not - it is the command processor which will process the commands which will be DSNREXX if you follow the documentation. You will get a RC=-3 if you put in an invalid environment.

Try
CALL RXSUBCOM "ADD", "FOO", "DSNREXX"

and then send your SQL to ADDRESS FOO.