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


Please Help Members By Posting Answers For Below Questions

Define cobol?

862


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8167


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

661


How do u write test cases?

1638


how do you reference the esds vsam file formats from cobol programs

634






how do you reference the ksds vsam file formats from cobol programs

666


How you can characterize tables in cobol?

718


Explain the configuration section of a cobol program with examples of syntax.

659


What are the cobol coding sheets?

664


how can i see junk values in dclgen or in hostvariable of comp ?

2544


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2732


What is the Purpose of Pointer in the string?

643


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

676


How do you get the data to code the BMS macro?

1476


Name the divisions, which are available in a cobol program?

685