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

Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

1031


What is comp-1 and comp-2?

929


Which division and paragraphs are mandatory for a COBOL program?

909


) how do u code after getting data?

1780


What is the compute verb? How is it used?

845


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

959


HOw can I get the negative sign while deduct high value from low value

1998


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

856


Difference between cobol and cobol-ii?

932


What is link edit in cobol?

937


What are the pertinent COBOL

2233


How you can read the file from bottom?

866


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1871


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

899


Why did you choose to work with ibm mainframe cobol programming?

837