In Update procedure

Bob Deskin Bob.Deskin at ca.ibm.com
Wed Sep 23 10:32:44 CDT 2009


There's no direct way to know what the user entered. In most cases it's 
obvious from the executed procedure.

For the question Jeff asked, try this:

screen a
file file_a
gen
subscreen b
build
screen b
file file_b
gen
procedure preupdate
  push find
build

Get into screen A and do a find. Then call screen B. In screen B,  find a 
record and make a change. Now try your various update commands. You'll see 
(hopefully as in my quick tests) that entering U, US, or UN results in a 
Find whereas UR gets you back to screen A sitting in the action field.

If entry is allowed on screen B, it's trickier. Basically, you're allowing 
one entry cycle but after the update you're going into find or leaving the 
screen. I couldn't think of a simple way to do this without modifying the 
ENTRY procedure using a flag to condition processing. Maybe someone else 
can come up with something.

Bob





From:
"Ken Langendock" <ken.langendock at rogers.com>
To:
<powerh-l at lists.sowder.com>
Date:
2009-09-23 09:53 AM
Subject:
RE: In Update procedure
Sent by:
powerh-l-bounces+bob.deskin=ca.ibm.com at lists.sowder.com





More information about the powerh-l mailing list