Re: Assignment of ARG_VAL in Informix 6.0
Posted in 1996
In <4s5d5m$7f3@cssun.mathcs.emory.edu> sandys@easter.euro.csg.mot.com ("Sandy Spiers") writes: >so my guess is that you have a WHENEVER ERROR routine being called which is >trapping the error for you. >One way of validating that you did get a date passed is to code a WHENEVER >ERROR CONTINUE, do the assignment, then check to see if the variable IS NULL >and finally turn the error handling back on. I have added a couple of lines >to your little code fragment. >MAIN > DEFINE l_date DATE > WHENEVER ERROR CONTINUE > LET l_date = ARG_VAL(1) > IF l_date IS NULL THEN > DISPLAY "INVALID DATE PASSED" > END IF >END MAIN Or you could just STEP through it with the debugger and see where the program flow takes you, or check the variable at interesting times during the execution. Bryan Tonnet.