- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following specification is accepted by the compiler:
CHARACTER*1 FALSE/Z'00'/, TRUE/Z'01'/
but is not accepted in the next case:
CHARACTER(LEN=1), PARAMETER :: FALSE=Z'00', TRUE=Z'01'
v9synchk.for(102): error #6957: This is an illegal data type value for this parameter. [Z'00']
CHARACTER(LEN=1), PARAMETER :: FALSE=Z'00', TRUE=Z'01'
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, those are two very different declarations. BOZ constants (Binary, Octal, Hexadecimal) are allowed in DATA statements. Your first declaration uses a non-standard syntax that is treated like DATA. The second is declaring a named constant and here a BOZ constant isn't allowed in that context. Try CHAR(Z'00') and CHAR(Z'01') instead.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page