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 |
How do u know what version of cobol u are using?
How do get the result of your program directly on your pc?
how to pass 100 to s9(4) how r they inserted ?
Hi, My interviewer ask A calls B and C calls B, a and b are static c and b are dynamic.what happens if they compile and execute at same time.
WT R TECHNICAL MAINFRAME QUESTION ASKED IIN ANJANASOFTEARE??
What are some examples of command terminators?
What is the difference between comp and comp-3 usage?
01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'abcde' to var1 then waht is the value of var1 and var2
Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER
What are the two search techniques ?
In a COBOL program, 2 tables TABLE1 and TABLE2 are defined that are indexed by INDEX1 and INDEX2 respectively. Can we use INDEX1 with TABLE2 and INDEX2 with TABLE1?
How do you differentiate between cobol and cobol-ii?