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

S9(5)V9(2) occupies how many bytes memory ?

6 Answers   Cap Gemini,


if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.

2 Answers   UST,


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

3 Answers   ADP, DELL, L&T,


I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?

2 Answers   ADP,


Write the code to count the sum of n natural numbers.

0 Answers  


I have a Flat file in which certain records are present in a tabular format. I need to extract some of the records on some basis from it and copy them into a flat file...how it can be done ??

2 Answers   HCL,


What do you feel makes a good program?

2 Answers  


How do get the result of your program directly on your pc?

0 Answers   UST,


1.What is the limit of linkage section?

4 Answers  


Write a cobol program making use of the redefine clause.

0 Answers  


how can we code index in an array of cobol pgm?

1 Answers   Wipro,


How does IDMS insure data integrity?

1 Answers  


Categories