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
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
how do you reference the rrds file formats from cobol programs
What are the different rules of SORT operation?
What are the pertinent COBOL commands?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Are you comfortable in cobol or jcl?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Explain how to differentiate call by context by comparing it to other calls?
what is difference between cobol and cobol/400
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Can we redefine the field of x(200) to less than 200?
How to remove 2 duplicate records and copy only one using job control language?
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.
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?