how can we get current dat and time thru cobol pgm
Answer Posted / vinodquestion
HI friend,
Move function CURRENT-DATE to dt.
Here dt is a working storage variable.
If you want exactly date and time do this
Instead of CURRENT-DATE in above statement write this.
CURRENT-DATE(1:16)
That is using referential modification.
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
how do you reference the rrds file formats from cobol programs
What are the different rules of SORT operation?
Which division and paragraphs are mandatory for a COBOL program?
Which Search verb is equivalent to PERFORM…VARYING?
Discuss about changing dataset name in proc.
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is the difference between comp and comp-3?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is redefines clause in COBOL?
What is the LINKAGE SECTION used in COBOL?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
What is the usage of comp fields in cobol?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?