M
Member 310024
Guest
Using SQL only (not COBOL ws fields) I would like to to put the current date and time into a char(14) field, in the format yyyymmddhhmmss.
In COBOL this would be very straight forward, but I am writing a data-fix jcl/sql which needs to update a record, and then needs to store a separate history/audit record containing the current date+time (in the format yyyymmddhhmmss) and a reference to the updated record.
I have searched ref manuals and the internet and asked lots of people at work, and experimented with all sorts of syntax possibilities, but cannot get a solution that works on our IBM mainframe MVS DB2 system.
I know this is not a general COBOL question but I cannot find the SQL forum, and I've noticed that many of the questions in this forum are not strictly COBOL questions, but rather DB2, JCL etc.
In COBOL this would be very straight forward, but I am writing a data-fix jcl/sql which needs to update a record, and then needs to store a separate history/audit record containing the current date+time (in the format yyyymmddhhmmss) and a reference to the updated record.
I have searched ref manuals and the internet and asked lots of people at work, and experimented with all sorts of syntax possibilities, but cannot get a solution that works on our IBM mainframe MVS DB2 system.
I know this is not a general COBOL question but I cannot find the SQL forum, and I've noticed that many of the questions in this forum are not strictly COBOL questions, but rather DB2, JCL etc.