But like I requested, I'm wondering if there is any way to skip creating the look up file and simple way to get decimal value. Just like UFMT gives hex value.
WebFOCUS 8 Windows, All Outputs
August 17, 2016, 12:21 PM
Hallway
I was able to convert Hex to Dec when using a SQL pass-through. You just need to make sure that you add a '0x' to the front of your HEX as you can see I did in the &SQLHEX variable:
-DEFAULTH &MYHEX = '073D7AAE'
-SET &SQLHEX = '0x' | &MYHEX;
ENGINE SQLMSS SET DEFAULT_CONNECTION YOUR_SERVER_NAME
SQL SQLMSS PREPARE SQLOUT FOR
SELECT '&MYHEX' AS HEX, CONVERT(INT, &SQLHEX.EVAL) AS DEC
END
TABLE FILE SQLOUT
PRINT *
END
I'm sure that you could use the DB_EXPR function if you don't want to use a SQL Pass-through.