How include time & date in the report generation in cobol
programing?

Answer Posted / varun v

Use the below command

MOVE FUNCTION CURRENT-DATE(1:16)
TO WS-DATE-WORK-AREA

Here WS-DATE-WORK-AREA should have the
format "CCYYMMDDhhmmssms"

CCYY - YEARS
MM - MONTHS
DD - DAYS
hh - HOURS
mm - MINUTES
ss - SECONDS
ms - MILLISECONDS

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program that uses move corresponding.

668


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1607


What is the difference between comp and comp-3?

694


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1921


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

643






What is the difference between Call and a Link?

694


Mention the guidelines to write a structured cobol program?

615


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1900


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

707


Differentiate between structured cobol programming and object-oriented cobol programming.

663


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

1951


Write the code implementing the perform … varying.

639


What rules are to be followed while using the corresponding options?

632


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

744


How to remove 2 duplicate records and copy only one using job control language?

738