Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: Select Case

$
0
0
This works in Oraedit, but now I'm trying to add it to cobol (as embedded) and can't even get it to compile...       EXEC SQL         SELECT case                when TO_CHAR(C.HOLLYDATE,'MM-DD-YYYY') =                    TO_CHAR(SYSDATE,'MM-DD-YYYY')               and C.STARTTIME = to_char(sysdate,'HH24:MI')                       and C.STOPTIME  = to_char(sysdate,'HH24:MI')                then  'TRUE'                ELSE 'FALSE'       END HOLIDAY            from dual a, HOLIDAY C                   where TO_CHAR(C.HOLLYDATE,'MM-DD-YYYY') =                       TO_CHAR(SYSDATE,'MM-DD-YYYY')      END-EXEC.         2 cobch0803 000400 encountered the symbol "then" when expecting one of the following: 1 cobch0149 no sql directives have been set

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>