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 |
in cobol main pgm is calling sub pgm but sub pgm does not exists , what abend i get if submit the job?
What is a subscript ?
what is label record is standard or omitted in file description of data division?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
01 var1 pic s9(9)v99. 01 var2 pic x(30). procedure division. move 12345.99 to var1. move12345.99 to var2. display var1. display var2. what is the output?
How can you add a particular field/coloumn in copybook?
how do you reference the printer file formats from cobol programs
what is the advantage of using redefines instead of delaring the variables ?
Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?
What is the compute verb? How is it used?
Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.
Wat is the difference between NEXT and CONTINUE statement in cobol,can any one explain with example.