Hi Elbert,
 
I know.  But before running the called pgm the CL creates temp files based on user login information. And the CL need the account number from the web CGI pgm to create the temp file.

Elbert Cook <[EMAIL PROTECTED]> wrote:
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! FareChase - Search multiple travel sites in one click.

SPONSORED LINKS
How to format a computer hard drive Cobol programmer Iseries 400
How to format a computer


YAHOO! GROUPS LINKS




Reply via email to