Qp2jobCCSID()--Retrieve Job CCSID for i5/OS PASE


  Syntax
 #include <qp2user.h>             /* for ILE programs */
 #include <as400_protos.h>        /* for i5/OS PASE programs */  

 int Qp2jobCCSID(void);

  Service Program Name: QP2USER (for ILE programs)

  i5/OS PASE Library: libc.a (for i5/OS PASE programs)

  Default Public Authority: *USE

  Threadsafe: Yes

Note: This function can be used in either an ILE program or an i5/OS PASE program. See i5/OS PASE for more information about creating i5/OS PASE programs.

Qp2jobCCSID() returns the job default CCSID (coded character set identifier) from the last time the i5/OS PASE CCSID was set. The i5/OS PASE CCSID is set when an i5/OS PASE program starts, and can be changed by the i5/OS PASE runtime function _SETCCSID.


Parameters

None.


Authorities

None.


Return Value

The function result is a coded character set identifier (CCSID), or 0 if i5/OS PASE CCSID information is not available (such as when no i5/OS PASE program is running in the job).


Related Information



API introduced: V5R2
Top | i5/OS PASE APIs | APIs by category