For Programmers: Free Programming Magazines  


Home > Archive > Cobol > January 2007 > Question re FUNCTION SECONDS-FROM-FORMATTED-TIME









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Question re FUNCTION SECONDS-FROM-FORMATTED-TIME
Roger While

2007-01-16, 9:55 pm

What is supposed to happen if the content of arg-2 does not agree
with the format in arg-1 ?
eg.
arg-1 "hhmmss"
arg-2 "13:30:01"

Roger


Rick Smith

2007-01-16, 9:55 pm


"Roger While" <simrw@sim-basis.de> wrote in message
news:eoj0ui$bpd$02$1@news.t-online.com...
> What is supposed to happen if the content of arg-2 does not agree
> with the format in arg-1 ?
> eg.
> arg-1 "hhmmss"
> arg-2 "13:30:01"


ISO/IEC 1989:200x WD 1.6, page 601,
"The rules for a function may place constraints on the
permissible values for arguments in order to permit
meaningful determination of the function's value. If the
evaluation of an argument results in an incorrect value
for that argument according to the rules specified in the
function definition and no exception condition was raised
during item identification or expression evaluation, the
EC-ARGUMENT-FUNCTION exception condition is
set to exist. If an exception condition is raised during item
identification or expression evaluation, that exception
condition is raised, not EC-ARGUMENT-FUNCTION.
If the EC-ARGUMENT-FUNCTION exception condition
is set to exist and checking for EC-ARGUMENT-FUNCTION
is not enabled, the implementor defines the result of the
function reference."



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com