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

in cobol main pgm is calling sub pgm but sub pgm does not exists , what abend i get if submit the job?

2 Answers   HSBC,


What is a subscript ?

3 Answers  


what is label record is standard or omitted in file description of data division?

3 Answers   IBM, TCS,


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

2 Answers   IBM,


01 var1 pic s9(9)v99. 01 var2 pic x(30). procedure division. move 12345.99 to var1. move12345.99 to var2. display var1. display var2. what is the output?

2 Answers   IBM,


How can you add a particular field/coloumn in copybook?

3 Answers   ADP, DELL, L&T,


how do you reference the printer file formats from cobol programs

0 Answers  


what is the advantage of using redefines instead of delaring the variables ?

5 Answers   HCL,


Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?

2 Answers   TCS,


What is the compute verb? How is it used?

0 Answers  


Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.

5 Answers   EDS,


Wat is the difference between NEXT and CONTINUE statement in cobol,can any one explain with example.

11 Answers   Deloitte,


Categories