Dear forists:
A Block Data routine is supossed to initialize the common areas in DELSML.INC. Both are included below.
FTN95 complains with the following disgnostic:
-
DATA MSKTPA / Z80000000 /
*** All items in a a DATA statement's value list must be literal constants
Could you please let me know why DATA item values cannot be integers, or hexadecimal, as defined in my INCLUDE file?
Thanks a lot
---------------------- DELSML.INC -------------------------- C Include file with parameters and arrays for the smoothing and C sharpening factors. Also bits indicating active status and fault C status for a triangle. C Revision List: C March 1994 Original Version C C ... Sharpness codes for the 'fast' smoothing operation. Actual C values must be loaded by including BLOCK DATA program LOADSH. C INTEGER * 4 SHLE PARAMETER (SHLE = 4) C CHARACTER * 1 SH(SHLE) C INTEGER * 4 MSKTPA ,MSKTFL INTEGER * 4 MSKTP1 ,MSKTP2 ,MSKTP3 INTEGER * 4 MSKTPS(3) EQUIVALENCE (MSKTP1 ,MSKTPS(1)) EQUIVALENCE (MSKTP2 ,MSKTPS(2)) EQUIVALENCE (MSKTP3 ,MSKTPS(3)) C INTEGER * 4 ISHTR(3) COMMON /SHINT4/MSKTPA ,MSKTFL ,MSKTPS ,ISHTR COMMON /SHCHAR/SH CCC
--------------------------------BLOCK DATA-----------------------------
C DELSHL BlockData Initialization of status masks and common areas BLOCK DATA C For initializing status masks and smoothing and sharpening common area C in file DELSML.INC C Originally: INCLUDE '/u/albert/dvlp/newup/DELSML.INC' INCLUDE 'C:\users\albert\AIX\dvlp\newup\DELSML.INC' C DATA SH(1) / 'v'/ DATA SH(2) / 's'/ DATA SH(3) / 'h'/ DATA SH(4) / 'b'/ C DATA MSKTPA / Z80000000 / DATA MSKTFL / Z01000000 / DATA MSKTPS(1)/ Z60000000 / DATA MSKTPS(2)/ Z18000000 / DATA MSKTPS(3)/ Z06000000 / C DATA ISHTR(1)/ 29 / DATA ISHTR(2)/ 27 / DATA ISHTR(3)/ 25 / C