DSNTIAR and CALL from REXX.

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Post Reply
Salil
Registered Member
Posts: 26
Joined: Sat Jul 20, 2013 11:10 pm
India

DSNTIAR and CALL from REXX.

Post by Salil »

Hi,

Can you please guide in how to call the DSNTIAR from REXX. I think seen its example somewhere but not able to locate it now. If someone can help, I'd appreciate that.
Salil
Registered Member
Posts: 26
Joined: Sat Jul 20, 2013 11:10 pm
India

Re: DSNTIAR and CALL from REXX.

Post by Salil »

Thanks for anyone who looked at this thread to help out. I got the following, though not exacly what I was looking but fine for now:

Code: Select all

/* REXX */
TRACE O
"ISPEXEC CONTROL DISPLAY LINE START(1)"
PARSE UPPER ARG SQLCODE
SQLC = X2C(D2X(SQLCODE,8)) ;
SQLCA = 'SQLCA 'X2C(00000088)SQLC||X2C(0000)||COPIES(' ',78)||,
COPIES(X2C(00),24)COPIES(' ',16) ;
TIAR_MSG = X2C(0190)COPIES(' ',400) ;
TEXT_LEN = X2C(00000050) ;
ADDRESS ATTCHPGM 'DSNTIAR SQLCA TIAR_MSG TEXT_LEN'
SAY SUBSTR(TIAR_MSG,4,400);
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”