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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / bindu

It is not possible to see field name at runtime

Is This Answer Correct ?    1 Yes 0 No

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

Answer / guest

when you will get ans than plz tell us.......... anurag

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More RPG400 Interview Questions

How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

0 Answers  


what procedure should we use to find whether the following operations are successful or not setll setgt chain read reade readp pls tell with example i'm not lazy to read the manual or not lazy to do anything.but sometimes i cannot understand the things given in manual in high level english its little bit complicated for me,i can't understand their way of writing thats why i ask these questions here and find the solution in simple words that i can understand thats the real reason sir.sorry if i had hurt you or disturbed you.please understand my situation.

5 Answers   iGate,


What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq C MOVE *LOVAL NUM1 50 C MOVE *J-fIVAL NtJM2 52

2 Answers   Fiserv, IBM,


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

0 Answers  


What you have to do in the display file when you are using message subfile?

1 Answers  






I am reading a file in CL program. and MONMSG CPF0864 has arrived means EOF has arrived. Now i want to read this file again. How i can do this?

5 Answers   CitiGroup, Symphony,


can anyone explain aboutovrOVRDBF,OPNQRYF, OVRSCOPE and OPNSCOPE?

2 Answers   TCS,


In how many ways a session/device error occurs,,, and what is the remedy for it?

3 Answers  


where we give the MSGSFL in rpg400?

4 Answers  


can we perform CHAIN operation on Subfile record format....?

4 Answers  


suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis

1 Answers  


what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,


Categories