how can i get the cursor position in display screen to
to display my window?
Answers were Sorted based on User's Feedback
Answer / gurjit oberoi
Or we can ude file information data structure
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / yogesh
Return Cursor Location (RTNCSRLOC)keyword in display file.
You must specify the cursor-record parameter and the cursor-
field
parameter. You can also specify the cursor-position
parameter.
The fields you specify for cursor-record and cursor-field
must be
unique, 10-character, hidden fields that are defined for
the record
format.
The field you specify for cursor-position must be a signed-
numeric,
4-character, hidden field that does not have decimal
places. The
field must be defined for the record
format.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sapthagiri .p
Usin the Key word RTNCSRLOC . but befor using this key word
in you ensure that you are creating an hidden field C#fld
and in your program If C#FLD = 'Desired field' call your
window .
| Is This Answer Correct ? | 1 Yes | 0 No |
Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)
In Which Specs Arrays, Tables & Constants Are Defined?
PGM QSH CMD('/QOpenSys/bin/sftp -b/home/test/myfile.txt serverUserID@server') ENDPGM Can u plz tell me what the above code do exactly?
Determine the value of the result field a. Cost = $110. 00 b. Tax = 20% c. MarkUp= 05% d. Sale = 10%
describe the difference between the dowxx and douxx operations?
A phisical file has two fields like 1) Account No(10,0) 2)Phone No(15,0)Unique on both fields?Please give me the answer for this?
how to read database records without locking them?
Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?
What is a query can be displayed without saving it?
Can anybody know difference between SNDUSRMSG AND SNDPGMMSG IN CL PROGRAMMING? IF DON'T KNOW MAIL ME @ gkarthik.as400@gmail.com
how do you read changed records backward in subfile?
can we use ASCII ,CDUP,SENDPASV commands in SFTP?