how can we get current dat and time thru cobol pgm
Answer Posted / gummadi srinivas
USING REFERENCE MODIFICATION WE GET DATE
1) current date
move function current-date (1:8) to ws-today
here ws-today is w.s.s variable
2) current time
move function current-date (9:6) to ws-time
here ws-time is the w.s.s variable
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Define cobol?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How do u write test cases?
how do you reference the esds vsam file formats from cobol programs
how do you reference the ksds vsam file formats from cobol programs
How you can characterize tables in cobol?
Explain the configuration section of a cobol program with examples of syntax.
What are the cobol coding sheets?
how can i see junk values in dclgen or in hostvariable of comp ?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is the Purpose of Pointer in the string?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
How do you get the data to code the BMS macro?
Name the divisions, which are available in a cobol program?