15 pts.
Q:
Fields not coming into program from screen
I've written a simple program that reads a record and displays the fields on the screen.  When I change a field for some reason it does not come into the program changed.  I put a debug after the exfmt and it shows the field on the screen as if I did not entering anything new...it shows the original value from the file...the file displays the field as a 4 and i change it to a 6 but when i debug it shows that field as a 4 right after the exfmt...
ASKED: Nov 19 2009  6:35 PM GMT
25660 pts.
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • Bookmark and Share
Are you pressing a function key to return to your program?
If it's a function key and if it's coded in the DDS as CA - cammand allert as opposed to CF command function then it would act as you've described..change the CA to CF and you're good to go. Otherwise, I'm at a lose.
Phil
Last Answered: Nov 20 2009  1:50 AM GMT by Philpl1jb   25660 pts.
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

TomLiotta   15415 pts.  |   Nov 19 2009  9:55PM GMT

You’ll need to show us the DDS for the field at the very least. If you don’t show us definitions, there’s no way we can guess — there are multiple possibilities.

And if the field looks okay, the record-format level definition would be needed. If the record format looks okay, the file level will be needed. If those look okay, we’ll probably need evidence that the source you supply is the source for the actual display file being accessed by the job — that might involve library list or QRPLOBJ or activation group or…?

In any case, we need something to go by.

Tom

 

Harrisom   15 pts.  |   Nov 20 2009  12:47PM GMT

Phil thanks for the answer! It has been a while since I have programmed and totally forgot about the CA and CF! I changed it and it works! Thanks!