Focal Point
[SOLVED] WebFOCUS 8 - Parameters... Using IA+

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6617007096

August 20, 2018, 03:32 PM
NewBee...WF8
[SOLVED] WebFOCUS 8 - Parameters... Using IA+
Hi All,

Below is my question. Thank you in Advance.

How to parameterize the scheduled report to run for previous day.

I am getting option for today, first day of the month etc.. but not seen option for previous day.


Thank you

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8
Windows, All Outputs
August 20, 2018, 05:05 PM
FP Mod Chuck
NewBee

You need to create a global variable that calculates yesterday and use that variable in your WHERE statement.


-SET &&YESTERDAY=AYMD(&YYMD,-1,'I8YYMD');


This code can be place in your reporting server profile (edasprof.prf) and will be automatically available when your scheduled job runs.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
August 20, 2018, 05:53 PM
NewBee...WF8
Thank you FP Mod Chuck for your response.

How can I achieve the same for a report if I have to run within IA+ as a parameter ?

Thank you


WebFOCUS 8
Windows, All Outputs
August 20, 2018, 07:21 PM
FP Mod Chuck
If you put the -SET command in the reporting server profile it can be used by IA+ using a Filter with the date field you want to screen and use the &&YESTERDAY variable/parameter


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
August 20, 2018, 07:50 PM
NewBee...WF8
FP Mod Chuck, I understand per your suggestion if I put this command in edasprof.prf (SERVER PROFILE) it can be further used in IA+. But, I do not want to do anything on the server so, will it still be possible to achieve this in IA+?

Thank you


WebFOCUS 8
Windows, All Outputs
August 20, 2018, 10:58 PM
FP Mod Chuck
NewBee

I don't see anyway to do a -SET command in IA+. A lot of customers use the server profile to establish global variables like this so they are available to be referenced by IA+


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
August 21, 2018, 07:39 AM
NewBee...WF8
Thank you FP Mod Chuck. Let me try what you are suggesting.

Thanks once again.


WebFOCUS 8
Windows, All Outputs