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 |
If i have a variable A pic 9(2) value 10 Compute A = a - 100 what will be the value of A and will there be any error becoz of the Negative value
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What are declaratives and what are their uses in cobol?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
what is scope terminator
What is different between variable length and fixed length?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Name the divisions, which are available in a cobol program?
what is the advantage of sync class
Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?
How to replace the GOTO statement in COBOL without changing the structure of program. e.g. consider following code... I.D. E.D. D.D. P.D. compute C = A + B. GOTO para 100-display. compute D = C - D. GOTO 200-display. some other logic...... ........ GOTO 300-para. ...... ...... GOTO 400-para. Now I want to replacce all GOTO statements without changing the structure and otput of program.
i WANT ALL ERROR codes IN CICS and DB2