P. 1
COBOL - Programming Guide

COBOL - Programming Guide

|Views: 968|Likes:
Publicado pormukesh

More info:

Published by: mukesh on Jul 01, 2011
Direitos Autorais:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
See more
See less

01/08/2015

|

Many COBOL programs need to obtain the date at the time of execution, to use as

|

“Date-Of-...” fields in output files or reports, or to compare against other dates read

|

from input files.COBOL provides a number of methods of obtaining the current

|

date with a 4-digit year.The simplest of these are:

|

The intrinsic function CURRENT-DATE

|

Retrieves the date in Gregorian form, and can also retrieve the current time

|

and the offset from Greenwich Mean Time.

|

ACCEPT identifier FROM DATE YYYYMMDD

|

Retrieves the date in Gregorian form.

|

ACCEPT identifier FROM DAY YYYYDDD

|

Retrieves the date in Julian form.

|

The CEELOCT callable service

|

Retrieves the date in three different forms, including Gregorian with a 4-digit

|

year.

362COBOL/VSE Programming Guide

Advanced Topics

You're Reading a Free Preview

Descarregar
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->