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
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What are the different data types in cobol?
Explain what you understand by passing by value.
how do you reference the rrds file formats from cobol programs
How do u write test cases?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Explain the configuration section of a cobol program with examples of syntax.
How can you get the ksds file records into your cobol program?
Write some characteristics of cobol as means of business language.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is link edit in cobol?
Which is not true about evaluate statement