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
How to handle duplicate error handling in RPG?
what is the rpg system?
what was the robotech rpg?
How would display prime numbers using CL program?
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?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
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
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...........
what is the necessary keyword needed to scroll subfile records?
How to declare the pull button in AS/400..
how do you use commitment control in rpg?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
What is ment by record level identifier?
What is the difference between copybooks and subprocedures in as400?
How can we override a file during runtime in rpg?