• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 861
  • Last Modified:

putovr

what is the use of putovr,ovrdta and ovratr keyword.
please give some example

0
Bsidmis
Asked:
Bsidmis
  • 2
3 Solutions
 
Gary PattersonVP Technology / Senior Consultant Commented:
0
 
BsidmisAuthor Commented:
hi,
I am not satisfied with the solution.
Please provide some better example
thanks.
bsidmis
0
 
Gary PattersonVP Technology / Senior Consultant Commented:
The accepted solution in the link that I provided you explains the function of each keyword, links to the relevant IBM manuals, and links to usage examples.  Here's the relevant section of my response to the above:

"... PUTOVR (plus OVRATR and OVRDTA) allows you to alter the attributes or contents of fields already on the display in order to reduce the amount of data that is sent when a screen doesn't need to be changed much.  It is there to allow you to save communications bandwidth.  It doesn't allow you to do anything that you can't do by sending the whole screen (or a whole record format).  For example, if you already have an entire screen displayed,and you just need to change the contents of one field, or change the attribute of one field, then you use PUTOVR at the record format level to tell the system that it does not need to send the entire record format every time, and you specify and condition OVRDTA or OVRATR at the field level to indicate that you are just going to update that particular field or attribute.See page 3-18 of the Application Display Programming manual for details and examples."
What else would you like to know?  I'm happy to help.

- Gary Patterson
0
 
daveslaterCommented:
Bsidmis:
PutOvr, OvrDta & Ovratr are techniques of a bygone age of slow communication via twinx and speeds were measured in bits per second and not Mbites per second.

It basically reduces the amount of traffic that is sent to display typically when validating.

Say you had a screen with 10 i/o fields on it, you could specify OvrAtr with the error indicators. That way when you showed a field in error the system would simply send down the attribute changes and not the data.
The OvrDta would be used to pass down some descriptive text, ie you have a city code and you wanted to pass down the City Name, OveDta could be set on the field to download the Description once, the after that it would stay on the screen but the data would not be passed from the program to the screen.

PutOvr is need  if you are using OvrDta or OvrAtr.

Programmers use to take advantage of some of the results to program pop-up windows (although I never understood why they simply did not use CLRL(*NO)  ) before the window keyword.

My advice is, unless you are using a very slow communication protocol,  to leave the keywords alone they bring little to the party and can cause unexpected results that can be a headache to sort out.


Dave
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now