Hiba_t
1st December 2010, 10:27
Hi all,

I have written program P1, created a new device DEV and set P1 to be it's 4GL program.

Now I need P1 to run report R1 each time.

I have tried all the ways I know to run report R1 from a script (AFS, brp functions, rprt functions) and all are working when running the program P1 manually, but when it runs as a device the report is not activated.

Is there another way to do this? Or is it not allowed?

Regards,
Hiba

mark_h
6th December 2010, 17:17
Not sure this can be done. Where is the report going? More information is needed.

Hitesh Shah
6th December 2010, 19:21
At the time u use the program in device certain spooling related pre-defined variables are used for main report and for that reason , it may not be working through device.

As a last resort , u can always work with spool functions and open the spooled output to users.

Hiba_t
7th December 2010, 09:40
Thanks Hitesh R Shah, it works now

- Hiba