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 a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....
What are various search techniques in cobol? Explain.
can we read in input the file with a variable length ? please , how ..could you help me ?
how to access the file from prodution from changeman tool and to submit a file to production
When is a scope terminator mandatory?
What is the difference between a binary search and a sequential search?
If there are two files one with 100 records and other with 101 records. we have to find out the one record that is the odd man out . What are the steps to do it
How many types of sorts are there in cobol?
Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you
How do pass the values to the parameters in cobol
How do u initialize an array?
diffrence between renames and redifnes with examples