0 pts.
 Api usage
Hi! Any one that knows where (in which library) to find the CEERARN0 api? The crtpgm command can't find the module. Best regards! //MikEhr

Software/Hardware used:
ASKED: September 26, 2006  7:20 AM
UPDATED: September 26, 2006  8:03 AM

Answer Wiki:
Hi Do you mean CEERAN0 (Random Number Generator)? If so, CEERAN0 is a procedure that is available as part of an ILE service program that is automatically bound to your program by the compiler. You don't need to bind it specifically to your program. Do a DSPPGM or DSPSRVPGM on your program/service program and you should find a number of system service programs bound in, such as QRNXIE, QLEAWI, etc. One of these will contain the CEERAN0 procedure. A prototype for calling the API from RPG is: *----------------------------------------------------- * Generate a Random Number API *----------------------------------------------------- D CeeRan0 pr ExtProc('CEERAN0') D iSeed 10i 0 D iRandomNo 8f D iFailCode 12a Options(*Omit) All the best Jonathan
Last Wiki Answer Submitted:  September 26, 2006  8:03 am  by  astradyne   370 pts.
All Answer Wiki Contributors:  astradyne   370 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _