how can we get current dat and time thru cobol pgm
Answer Posted / gummadi srinivas
USING REFERENCE MODIFICATION WE GET DATE
1) current date
move function current-date (1:8) to ws-today
here ws-today is w.s.s variable
2) current time
move function current-date (9:6) to ws-time
here ws-time is the w.s.s variable
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are all the divisions of a COBOL program?
What is rmode(24)
What is the difference between Call and a Link?
HOw can I get the negative sign while deduct high value from low value
how do you reference the variable unblock file formats from cobol programs
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Explain what you understand by passing by value.
What is the local-storage section?
What is link edit in cobol?
How can you get the ksds file records into your cobol program?
A table has two indexes defined. Which one will be used by the SEARCH?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What are different data types in cobol?
Write a program to enter and display the names of students in a class using the occurs clause.