× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Help!!!!!!! Parameter Passing
  • From: Troy.C.Dills@xxxxxxxx
  • Date: Thu, 14 Jun 2001 15:29:11 -0400

Hello All

Someone please help : )!   This is a question continued from earlier this 
morning.
I have 1 CL(LE) program (PGMA) which calls another program (PGMB) that consist 
of a
CL (Module) Passing it some numeric parms (15  5) still at this point,
I change it to a char with a length of 8. Here is some sample code of the CL 
(Module)

(PGMA consist of 1 CL Module only)
(PGMB consist of 1 CL Module and a 1 RPG Module)

DCL        VAR(&CPER) TYPE(*DEC) LEN(15 5)
DCL        VAR(&VPER) TYPE(*DEC) LEN(15 5)

DCL        VAR(&CALDT) TYPE(*CHAR) LEN(8)
DCL        VAR(&VALDT) TYPE(*CHAR) LEN(8)

CHGVAR     VAR(&CALDT) VALUE(&CPER)
CHGVAR     VAR(&VALDT) VALUE(&VPER)

CALLPRC    PRC(MSG7AE) PARM(&CALDT &VALDT &INCAID +
               &WSALL &RECVR)
_____________________________________________________________

Here is a sample of my RPG Module


*ENTRY        PLIST
              PARM              CALPER       8
              PARM                    CADTVA           8 0
              PARM                    INCAID            10
              PARM                    WSALL              1
              PARM                    RECVR           10

              Eval                        ScDate = CalPer
                                                                                
       (SCDATE  is equal to 8 char)

My program runs fine  but my output is blanks for this field any ideas?

PS, My first CL (PGMA) is using the

SBMJOB     CMD(CALL PGM(MSG7AE) PARM(&CPER &VPER &INCAID &WSALL)) +
           JOBQ(QBATCH) JOB(STC_OUT)

Am I completely off my Knockers?  If I am please someone put me out of my misery

My brain has almost pooted out and I know this is very simple so someone please
go ahead and make me look like an idiot.  I have no pride left.
 I've already checked out the faq's and the archives.

Thanks You Very Much
Troy C. Dills
Troy.C.Dills@Blum.com
Julius Blum Inc.
704-827-1345 ext 269

spammers  not  welcome !!!!!!!!!!!!!!!!!!!!!


+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.