how can i retrieve the field name from display file at run
time?
Devendra Singh Tomar

Answer Posted / srikanth

If we use following RTNCSRLOC keyword in display with fields as specified, and if we place cursor on any field, CFLD will populate with field name.
A RTNCSRLOC(*RECNAME &CREC &CFLD &CPOS)
A CFLD 10A H
A CREC 10A H
A CPOS 4S 0H

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to handle duplicate error handling in RPG?

1950


what is the rpg system?

909


what was the robotech rpg?

862


How would display prime numbers using CL program?

5939


If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

825


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1366


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

2074


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3549


what is the necessary keyword needed to scroll subfile records?

901


How to declare the pull button in AS/400..

2099


how do you use commitment control in rpg?

980


which program rpg or cl is efficent to update a transaction onto a database file and why ?

962


What is ment by record level identifier?

851


What is the difference between copybooks and subprocedures in as400?

1072


How can we override a file during runtime in rpg?

911