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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2133


how do you reference the rrds file formats from cobol programs

1579


What are the different rules of SORT operation?

1143


What are the pertinent COBOL commands?

3177


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

2472


Are you comfortable in cobol or jcl?

1049


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1174


Explain how to differentiate call by context by comparing it to other calls?

1186


what is difference between cobol and cobol/400

22928


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

2078


What is the difference between a binary search and a sequential search what are the pertinent cobol?

1139


Can we redefine the field of x(200) to less than 200?

1377


How to remove 2 duplicate records and copy only one using job control language?

1220


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2433


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

1247