Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a Report Parameter to value returned from SQL statement 1

Status
Not open for further replies.

LeonelSanchezJr

Programmer
Jan 26, 2001
522
US
I am running a SQL query
and I need to set the report parameter equal to the
value returned in the SQL query.


Thanks,

Leo ;-)
 
Access a file in Fixed Block mode. Write the SQL data to this file as a SAVE (ON TABLE SAVE AS 'whatever') file. Close the file, and use a -READ to read the values you want into Dialogue Manager variables.
 
SQL
<your query>
;
TABLE FILE SQLOUT
PRINT *
ON TABLE SAVE AS HOLDPARM
END
-RUN
-READ HOLDPARM &MYPARM.A(length).
EX <fexname> <parameter>=&MYPARM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top