Focal Point
[CLOSED]PARAMETER FOR A WHERE STATEMENT

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

April 16, 2009, 02:04 PM
moyer1dl
[CLOSED]PARAMETER FOR A WHERE STATEMENT
Is there a way to give the user a choice when they choose dates for parameters in a web page so they can choose NE or EQ. Basically can you parameterize the NE or EQ?

Dan

This message has been edited. Last edited by: moyer1dl,


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7
April 16, 2009, 02:25 PM
BlueZone
Sure, you could make that another variable and concatenate the 2 variables in the WHERE statement.

Simple example below, but you can make it as fancy as you like with an HTML launch page.

Best regards,
Sandeep Mamidenna
 
-*
-PROMPT '&FLD_OPR.Select Filter Operation (EQ/ NE / GT).','A2'
-PROMPT '&FLD_VAL.Select Filter Value for SEATS(2 /4 / 6).','A1'
-*
-SET &WHR = &FLD_OPR || ' ' | &FLD_VAL;
-*
TABLE FILE CAR
PRINT MODEL  SEATS
BY COUNTRY
WHERE SEATS &WHR.EVAL
END
-EXIT

This message has been edited. Last edited by: BlueZone,


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music
April 17, 2009, 02:51 AM
GamP
Indeed, almost anything can be parameterized.
It sometimes needs a bit of extra coding, sometimes it is just a matter of using the parameter.
It is one of the great advantages of (Web)Focus.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988