[Migrated content. Thread originally posted on 15 May 2012]
Hi!I am having an issue retrieving a time field from my SQL table into my COBOL program.
It is defined as a time(7) in my SQL table, so I defined it in COBOL as PIC 9(06)V9999999.
When I perform my get statement, I am receiving a 2002 error which means the field is not formatted correctly.
How should it be formatted correctly so I can get that field back into my program?




