I would like to define a variable that will hold a timestamp value that is obtained from an embedded SQL statement in my COBOL program.
Since the incoming timestamp is 10 characters long, I have thus far defined my variable as follows...TEST_TIMESTMP PIC X(10)
Unfortunately, I receive the SQLCODE error stating 'invalid syntax for the string representation of a date/time value'.
My question is...
Is there such a thing as...TEST_TIMESTMP TIMESTAMP????
Can a variable be defined to hold a date/time string?
Any help would be useful and much appreciated for a first time COBOL programmer like myself.
Since the incoming timestamp is 10 characters long, I have thus far defined my variable as follows...TEST_TIMESTMP PIC X(10)
Unfortunately, I receive the SQLCODE error stating 'invalid syntax for the string representation of a date/time value'.
My question is...
Is there such a thing as...TEST_TIMESTMP TIMESTAMP????
Can a variable be defined to hold a date/time string?
Any help would be useful and much appreciated for a first time COBOL programmer like myself.