I woudl suggest one of two approaches. If each user can only be a member of one group,
TABLE FILE security_table
PRINT GRP_ID
WHERE USER_ID EQ &IBIMR_user
ON TABLE HOLD AS TEMPGRP FORMAT ALPHA
END
-RUN
-READ TEMPGRP GRP.Ann.
&GRP would hold the group id for that user
and you can use
WHERE GRP_ID EQ &GRP;
or, if a user can be a member of multiple groups:
TABLE FILE security_table
PRINT GRP_ID
WHERE USER_ID EQ &IBIMR_user
ON TABLE HOLD AS TEMPGRP FORMAT ALPHA
END
-RUN
and use
WHERE GRP_ID IN FILE TEMPGRP
In either case, just use a -INCLUDE to put the query that creates TEMPGRP in the begining of each report fex, and the appropriate where statement along with the other where's.
Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC
In WebFOCUS since 2001