As part of a POC project I am trying to use the z/OS Unicode Services subroutine CUNLCNV for character conversion from an Enterprise COBOL program. Since IBM doesn't seem to support or provide an example or parameter structures for using the service from COBOL, I have manually converted the PL/X version of the parameter structure (CUNBCPRM inside SYS1.MACLIB(CUNBCIDF)) to a COBOL copy member and I believe I have filled in all the relevant bits correctly based on running a test with the IBM HLASM sample in SYS1.SAMPLIB(CUNSMSMA), but that sample assembler program statically links CUNLCNV from SYS1.CSSLIB.
I am telling CUNLCNV the address, length and ALET (zero) of the source, target, DDA, and work buffers, and have populated the version and parameter length fields as is done in the HLASM version. I have set up a test COBOL program to use a dynamic CALL to CUNLCNV instead of a static one, but I get S0C4 when it actually CALL's the subroutine using the COBOL dynamic CALL mechanism. It isn't documented in the FM as far as I can see, but MUST the CUNLCNV subroutine be statically linked to use it? TIA for any practical experience or RTFM you can provide. Peter This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
