Hi! I've been using SAS for under a year so please bear with me as I articulate the problem I am having. I'm trying to run a report using PROC SQL and I need to include a field separately on the report. For example, I need to include a variable called "TQ" and if it is present I then need to include variables "SB", "SD", "SF", etc. The way I have it coded now includes everything together. ACTVT_RSLT_FACT.TRN_CD IN ( 'TQ', 'SB', 'SD', 'SE', 'SF', 'SJ', 'SK', 'SL', 'SM', 'SO', 'SP', 'SS', 'SU', 'SV', 'SZ', 'TE' ) I need to separate TQ from the rest of the tran codes listed on the report. I tried this: ACTVT_RSLT_FACT.TRN_CD LIKE 'TQ'
AND
ACTVT_RSLT_FACT.TRN_CD IN ( 'SB', 'SD', 'SE', 'SF', 'SJ', 'SK', 'SL', 'SM', 'SO', 'SP', 'SS', 'SU', 'SV', 'SZ', 'TE' ) But of course that didn't work. I'm building a report that shows TQ followed by SB, SD, SE so then I can calculate the days between them. I hope all this made sense and someone is able to help. Thanks Justin
... View more