How include time & date in the report generation in cobol
programing?
Answers were Sorted based on User's Feedback
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 |
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 |
Name the divisions, which are available in a cobol program?
If my program receives input feed from program in other system.. if the receiving field size is less than the sending field.. what abend will be happening.
what is Reentrancy and Quasi-reentrancy?
Suppose, file A has 100 records and file B has 500 records. We want to write records common to both A and B into file C and records which are present only in either A or B into another file D. What should be the logic of Cobol program to achieve this?
7 Answers Bank Of America, Mind Tree,
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
can we use 77 level no for Redefines?if we use give an example?
when COMP-3 is preferrable?
What is the difference between NEXT SENTENCE and CONTINUE?
In a program, variables are used but no DB2 involved in it. Can you call it as host variables??
what is srange and nosrange pls reply to ths question ?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What do you understand by passing by reference and passing by content?