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

What are literals?

632


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

648


how do you define single dimensional array and multidimensional array in your cobol?

678


What are the pertinent COBOL

2045


State the various causes of s0c1, s0c5 and s0c7.

665






please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958


What is inspect in cobol ?

806


Why would you use find and get rather than to obtain?

692


What is the use of intialize verb?

750


how to move the records from file to array table. give with code example

2221


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2105


How do get the result of your program directly on your pc?

1885


Difference between array and sub-script ?

1169


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

666


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1960