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


Please Help Members By Posting Answers For Below Questions

Write the code to count the sum of n natural numbers.

697


What are the various section in data division and briefly explain them.

688


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2718


What are various search techniques in cobol? Explain.

640


) how do u code after getting data?

1578






How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

635


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1922


What is the difference between perform … with test after and perform … with test before?

872


What is an in line perform? When would you use it? Anything else you wish to say about it.

639


Write a program to explain size error.

667


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

668


how do you reference the ksds vsam file formats from cobol programs

650


Have you used comp and comp-3 in your project? And how?

2003


What is the usage of comp fields in cobol?

649


What is the difference between next sentence and continue in cobol programing language?

701