On Fri, 13 Apr 2018 14:24:19 +0000, Ward Able, Grant wrote: >I have an Assembler program linked AMODE(31) RMODE(24). It makes SQL calls and >under some circumstances I will call DSNTIAR to printout the DB2 error & >diagnostic info. >The call statement I am using for this is: > >CALL DSNTIAR,(SQLCA,(6),LRECL),LINKINST=BASSM,MF=(E,PARM)
The CALL will generate a V(DSNTIAR). LINKINST=BASSM will cause the call to generate BASSM to transfer control to that address. The VCON will (IIRC) have bit 0 set to zero, so you will be calling the program in AMODE 24. Does DSNTIAR require that? Is your save area located below the line? > >Yet I am getting an S0C4 abend in DSNTIAR. I thought that using LINKINST=BASSM >would have resolved this for me. Resolved what? Does DSNTIAR use BSM to return? -- Tom Marchant ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
