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

How do you define a variable of comp-1 and comp-2?

917


how to refer the data field?

1996


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.

2242


explain sorting techniques in cobol program?

898


How you can read the file from bottom?

882


Write down the divisions of cobol program?

852


) How do u handle errors in BMS macro

1713


how to convert the recors form vsam file to db2 table tru file aid

2984


What are the rules of the move verb?

956


i want a program using by if, evaluate , string, unstring, perform, occurs?

4346


Difference between cobol and cobol-ii?

947


What is report-item in COBOL?

899


what is search and searchall?what is the diffrence between them?give an best example?

6199


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5089


In which area will you utilize 88 level items in cobol?

898