how can we get current dat and time thru cobol pgm
Answers were Sorted based on User's Feedback
Answer / 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 |
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 |
Answer / aaki
You can fetch current date from SysIBM.Sysdummy1 table in a
working storage variable
| Is This Answer Correct ? | 3 Yes | 1 No |
Can anyone explain me CALL procedure in COBOL.Does it carries similarities like call by reference in C.
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
can i use multiple when statements in search & search all ? justify ur answer?
where do u use low-value and high value in cobol
What are the divisions in a cobol program? Which one is the mandatory division among them?
What is the difference between SEARCH and SEARCH ALL?
What are the divisions in a cobol program?
Write a program to enter and display the names of students in a class using the occurs clause.
how to display comp3 variables reply soon ?
Write a program to concert an Indexed file into Sequential file?
a pic s9(4) comp b pic s9(4) comp-3 c ???????????????? d ???????????????? move a to c add a+B giving d. what is ur declaration for c,d?
Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?