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

Have you code any new programs in COBOL ? What is the functionality of the programs?

2 Answers   Patni, Xansa,


Is It Possible to Update or change in VIEW Mode?

5 Answers   CSC,


what is meant by binary search?

4 Answers  


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


where did you see the information regarding abend codes in jcl?

1 Answers   Hewitt,


how will you define vsam file in select clause?

3 Answers   Patni,


how will u pass dadta to cobol+db2 program...?

4 Answers   IBM,


what are the control characters used in reports

1 Answers  


What is the default value of DISP for temp datasets

5 Answers   IBM,


can we display comp-3 variables. if we want to display what we have to do . give me one example

6 Answers   CGI, Deloitte,


What is the difference between a binary search and a sequential search?

3 Answers  


What is the difference between a binary search and a sequential search?

10 Answers  


Categories