Find the Field Name in AS/400

765 pts.
Tags:
AS/400 Fields
AS/400 Windows
AS400 Data Definitions
Field names
When viewing the screen how can I see what the data field name is?

 

I am looking at the customer master screen, I see field I enter in cert# how can I find on the screen I am looking at what that field name is and what file it belongs to?

Answer Wiki

Thanks. We'll let you know when a new response is added.

You need to look at the actual source code.
A DSPF should have source in QDDSSRC (or whereever the development team stores the source). You can then look for the line# & Start position from the screen of the input field. When you find that in the source, you will find a field name.
Now you need to go to the RPG or COBOL or whatever source and find out how that field is being populated or outputed.

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Rudedog
    if you know the name of the data file (table) that the program uses you can use the DSPFFD (Display File Field Description) command to view the fields. these can be sent to an output file(*FILE) that can be printed by SQL or IBM Query tool. of course, if there are multiple files in the program, you will need to look at them as well as the possible data placement source. by reviewing the RPG and DSPF source code, you can determine which field(s) feed the screen file. -Sarge
    950 pointsBadges:
    report
  • TomLiotta
    Assuming a DDS-generated display file with no USRDFN (User Defined) usage -- Your program can retrieve the row & column that the cursor is on when the I/O brings information back. The I/O feedback area provides the coordinates. It also provides a record format name. From the row/column and format name, your program can use the List Fields (QUSLFLD) API to find a field name. (You might also use the Retrieve Display File Description (QDFRTVFD) API, but it's much more complex.) Part of the problem is that there is no requirement to have any field names in the screen I/O -- output could be USRDFN or even from the DSM APIs, or it might be a UIM panel group. The display device has no information at all about "field names" nor even "file names". It only knows that some characters or attributes are to be displayed at some coordinates and that some typing may be allowed at some coordinates. The values are all sent back and forth as character strings in buffers across the network. When viewing the screen..., there are no field names. Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    We've made some assumptions of what you know/can do/are allowed to do. Please come back, tell us how it's going and ask more questions as you go. Phil
    49,550 pointsBadges:
    report
  • Jaymz69
    Looking at the File from the QDDSSRC helped me find the field Thanks
    765 pointsBadges:
    report
  • LittleRichard55
    Very helpful - thanks!
    85 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following