If you just calling another program from rpg, you
could just use call the regular way instead of using
the DoCmd.
D Myclpg C const('mylib/myclpg')
C Call Myclpg
C Parm Accnt
--- Ignatius Kalapurakkel <[EMAIL PROTECTED]>
wrote:
> Hi Elbert,
>
> &ACCNT is declared as *CHAR in the CL pgm.
>
> Elbert Cook <[EMAIL PROTECTED]> wrote:
> You could try it this way but it shouldn't make a
> diffence.
>
> D command S 256A
> Eval command = 'Call mylib/myclpg parm(' + accnt +
> ')'
> Callp DoCmd(command)
>
> Or you might need apostrophe's around the parameter.
>
> Eval command = 'Call mylib/myclpg parm(''' + accnt +
> ''')'
>
> How is &ACCNT declare in the CL program. *CHAR *DEC,
> whats the length.
>
>
> --- Ignatius Kalapurakkel <[EMAIL PROTECTED]>
> wrote:
>
> > Hi Elbert,
> >
> > I tried your code but sorry that didn't work.
> >
> > Elbert Cook <[EMAIL PROTECTED]> wrote:
> > 'CALL (MYLIB/MYCLPGM)PARM(ACCNT)' is a literal
> > value.
> >
> > What you need to do is pass the value of the
> > variable.
> >
> > DoCmd('call mylib/myclpg parm(' + %trimr(accnt) +
> > ')')
> >
> >
> >
> > --- ignatiuskm <[EMAIL PROTECTED]> wrote:
> >
> > > I am calling the DoCmd procedure with the
> > following
> > > code
> > >
> > > C callp DoCmd('CALL
> > (MYLIB/MYCLPGM)
> > > PARM(ACCNT)')
> > >
> > > The ACCNT variable have a value in the CGI pgm.
> > But
> > > when MYLIB/MYCLPGM
> > > is called, the value is not getting passed to
> the
> > CL
> > > pgm. The CL pgm
> > > starts with PGM PARM(&ACCNT). Please help.
> > >
> > > Thanks
> > > Mathew.
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > __________________________________
> > Yahoo! FareChase: Search multiple travel sites in
> > one click.
> > http://farechase.yahoo.com
> >
> >
> > ---------------------------------
> > YAHOO! GROUPS LINKS
> >
> >
> > Visit your group "Easy400Group" on the web.
> >
> > To unsubscribe from this group, send an email
> > to:
> > [EMAIL PROTECTED]
> >
> > Your use of Yahoo! Groups is subject to the
> > Yahoo! Terms of Service.
> >
> >
> > ---------------------------------
> >
> >
> >
> >
> > ---------------------------------
> > Yahoo! FareChase - Search multiple travel sites
> in
> > one click.
>
>
>
>
> __________________________________
> Yahoo! FareChase: Search multiple travel sites in
> one click.
> http://farechase.yahoo.com
>
>
> ---------------------------------
> YAHOO! GROUPS LINKS
>
>
> Visit your group "Easy400Group" on the web.
>
> To unsubscribe from this group, send an email
> to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the
> Yahoo! Terms of Service.
>
>
> ---------------------------------
>
>
>
>
> ---------------------------------
> Yahoo! FareChase - Search multiple travel sites in
> one click.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/wbFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Easy400Group/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/