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

Answers were Sorted based on User's Feedback



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

Answer / guest

we have a cobol reserved wordS called CURRENT DATE AND TIME


Syntax: Accept ws-date from CURRENT DATE

Is This Answer Correct ?    20 Yes 3 No

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

Answer / 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

More COBOL Interview Questions

When is a scope terminator mandatory?

3 Answers  


Write a cobol program making use of the redefine clause.

0 Answers  


What is amode(24)?

0 Answers  


Should I use STOP RUN in the sub program??why?

6 Answers   Xansa,


What are ISOLATION LEVELS? Where do we need to specify them?

3 Answers   EXL,


How can you get the ksds file records into your cobol program?

0 Answers  


How we copy a program from production region to development region.What is the process & syntax ?

3 Answers   CTS,


How many variables can be declared in w-s section.?

2 Answers  


How To move a value to an array using move verb?

3 Answers   IBM,


What are various search techniques in cobol? Explain.

0 Answers  


hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe

6 Answers   Citi Bank, CitiGroup, HSBC, iNautix, Wipro,


Name the sections present in data division.

0 Answers  


Categories