HP3000-L Archives

February 1995, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Paul H. Christidis" <[log in to unmask]>
Reply To:
Date:
Wed, 22 Feb 1995 09:57:06 PST
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
>I have a VPLUS screen (ASRC3) on which fields C and D can have a value
>entered; in which case they should be automatically zero filled, right
>justified and in
>the range 000.0 to 300.0. (C and D are defined as length=5 and type=num1).
 
>If C and/or D are blank I want them to be set to 050.0 if field A
>(occurring before them on ASRC3) is = P other wise I want to set the
>field(s) to 100.0.
 
 {DEL}
 
>Any help would be greatly appreciated.
 
 
>Thanks Romilla
 
I tried the following and it seems to work, assuming the field is set up as
'Process' type.
 
                      *** Processing Specifications ***
IF EQ $EMPTY THEN
  IF A EQ "P" THEN
     SET TO 050.0
  ELSE
     SET TO 100.0
 
IF NE $EMPTY THEN
  SET TO C
  FILL LEADING "0"
  IN 000.0:300.0  "OUT OF RANGE ERROR"
 
Regards
 
Paul H. Christidis

ATOM RSS1 RSS2