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 |
In an EVALUATE statement, can I give a complex condition on a when clause?
Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.
How can you get the ksds file records into your cobol program?
What is Pic 9v99 Indicates in COBOL?
0 Answers SwanSoft Technologies,
if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?
Differentiate between structured cobol programming and object-oriented cobol programming.
If you were passing a table via linkage, which is preferable - a subscript or an index?
plz,could any one tell me? what about EBCDIC in cobol?briefly?
wht do u mean by (*,intrdr) wht is * used for ?
How many maximum number of procedures can we write in one COBOL program?
COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error
WT R TECHNICAL MAINFRAME QUESTION ASKED IIN ANJANASOFTEARE??