|
Hi. I've created an ILE COBOL program that generates an array of random numbers using the OS/400 CEERAN0 procedure. I've compiled and run the ILE program successfully from the command line. I'm having a problem calling the ILE program from an OPM COBOL program. Here's the code that makes the call: MOVE 1 TO WS-LOW-NUMBER. MOVE 99 TO WS-HIGH-NUMBER. MOVE 10 TO WS-HOW-MANY. MOVE 1 TO WS-UNIQUE-FLAG. CALL "RNDNUM" USING WS-LOW-NUMBER WS-HIGH-NUMBER WS-HOW-MANY WS-UNIQUE-FLAG. RNDNUM is the name of the ILE COBOL program. I have the library containing both the module and the program in my library list. I'd appreciate any insights. I'll also share the RNDNUM program with anyone who wants a COBOL random number generator. Thanks, Kelly __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.