How to position the cursor on a display file at a desired
location.

Answers were Sorted based on User's Feedback



How to position the cursor on a display file at a desired location...

Answer / swadesh

One way is, go to display attribute property of display
file and position the cursor on desire fields by
DSPATR(PC).cursor will be set on that field.

Is This Answer Correct ?    17 Yes 4 No

How to position the cursor on a display file at a desired location...

Answer / bharat

There is a keyword CSRLOC(F1 Row C1 Col), you have to
specify the location(which row or column). The system
positions the cursor before the output operation is
performed on the record that is being specified.

Is This Answer Correct ?    10 Yes 1 No

How to position the cursor on a display file at a desired location...

Answer / bharat

Bhupendra: as per your answer: SFLCSRRn is used to retrieve
the rrn of the record on which cursor is placed on the
subfile.

Is This Answer Correct ?    4 Yes 1 No

How to position the cursor on a display file at a desired location...

Answer / venkat

Agree with answer #3, you have to define CSRLOC(F1 Row C1
Col)in the display file. and the value for F1 Row and C1
Col will be passed in the program. (the desired location-
which column and which row)

Is This Answer Correct ?    3 Yes 0 No

How to position the cursor on a display file at a desired location...

Answer / bhupendra tomar

i am not sure but there are keywords like CURLOC or in case
of subfile SFLCSRRRN nothing else

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what is the maximum number of parameters allowed in clp?

2 Answers   IBM,


explain the purpose of keep and assume keywords?

1 Answers   IBM,


what is rpg fixed logic cycle?

0 Answers   IBM,


What is the difference between array and a multiple occurrence data structure?

1 Answers  


what the purpose of ovrdta, ovrata keywords?

1 Answers   IBM,


how will you find a string using pdm?

0 Answers   IBM,


1)In a pf if we delete a record then how to insert a new record at the same place in that pf?? any logic or code? 2)A batch job is taking a lot of time to run,found that it is going into loop and wrapping up so how to skip that loop and process the job without changing the code? 3)In which scenario C D I R comes and C D G F comes in a job? 4)If a job came to error while processing a file how we can know at which record the error hit and how to skip that record and process other records without changing program code?

1 Answers   JDA,


what is flatfile?what is the use of this file?where we can use usualy?what is the advantage of this?

2 Answers   Cognizant,


where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?

1 Answers   IBM,


what is the difference between *like and *namvar ?

1 Answers   IBM,


what is code for reading member in rpgle when wehave like extmbr(*all) so we have 3 members in *all then i want to read first record in 2member

2 Answers   HCL,


What does the keyword UNIQUE mean ?

1 Answers  


Categories