Jump to content

Recommended Posts

Posted

I believe I did this years ago but cannot find the fex. I want to create a hold file. The result will be a single row with 'Units' summed. I want to store the single resultant units to a variable. I then want to do an IF Units> 0 Then run fex1 Else run fex 2.

I do not recall how I did this and cannot find anything in the guide.

Thanks!

Posted
-IF &HOW_MANY GT 0 THEN GOTO :WE_HAVE_RECS ELSE GOTO :WE_HAVE_NO_RECS; -:WE_HAVE_RECS EX WE_HAVE_RECS -EXIT -:WE_HAVE_NO_RECS EX WE_HAVE_NO_RECS -EXIT

You can swap out the EX for INCLUDE if you so chose.

Posted

Thanks..actaully I really just need to evaluate and set a variable to a string and then use the string in my page header!

Something like:

MESSAGE A200 = IF UNITS < 100 THEN 'Note full refresh has not completed' ELSE 'Refresh Completed'

Posted

Or the Amper version

-SET &MESSAGE = 0; TABLE FILE CAR SUM  SALES COMPUTE MESSAGE/A200= IF SALES LT 300000 THEN 'Note full refresh has not completed' ELSE 'Refresh Completed'; NOPRINT ON TABLE HOLD AS TEST FORMAT ALPHA HEADING "<MESSAGE" END -RUN -READFILE TEST -TYPE MESSAGE &MESSAGE

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...