Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Name the divisions, which are available in a cobol program?

0 Answers  


If my program receives input feed from program in other system.. if the receiving field size is less than the sending field.. what abend will be happening.

1 Answers   HCL,


what is Reentrancy and Quasi-reentrancy?

1 Answers  


Suppose, file A has 100 records and file B has 500 records. We want to write records common to both A and B into file C and records which are present only in either A or B into another file D. What should be the logic of Cobol program to achieve this?

7 Answers   Bank Of America, Mind Tree,


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

0 Answers   EDS,


can we use 77 level no for Redefines?if we use give an example?

3 Answers   Mphasis,


when COMP-3 is preferrable?

3 Answers   Patni,


What is the difference between NEXT SENTENCE and CONTINUE?

2 Answers   Mphasis,


In a program, variables are used but no DB2 involved in it. Can you call it as host variables??

4 Answers   EDS,


what is srange and nosrange pls reply to ths question ?

2 Answers   L&T,


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

0 Answers   Amdocs,


What do you understand by passing by reference and passing by content?

1 Answers  


Categories