How I can read and display three fields in the record
format DSPFM1 of the display file,while
one field(using in one file) is NAME which is Key field in
field reference file and another two fields are AGE and ROLL
NO are using another file.
Please send me coding part.
Answer Posted / syam
I am Pasting Code.
FFILE1 IF E K DISK USROPN ->Reading pf
FDSPF CF E WORKSTN USROPN ->dspy file
C OPEN FILE1
C OPEN DSPF
C SETLL FILE1
C READ FILE1 51
C *IN51 DOWEQ *OFF
C WRITE DSPFM1
C READ FILE1 51
C ENDDO
C CLOSE FILE1
C CLOSE DSPF
C RETURN
it will show all the records from file undil file ends.
if you need ILE RPG Free fromat code pls post again your
request
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
can you have multiple key lists for a single file ?
What is the Difference between command attention key and command function key ?
Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?
define what a data area is along with a brief example of what it may be used for?
what the purpose of ovrdta, ovrata keywords?
what is message file?
define the purpose of the *cat function?
what is the function of crtdupobj command?
How can we arrange duplicate records in a file?
what is the favicon.ico request that my site receives now and then?
can we define multi-dimensional arrays in rpg ?
How to Define a Procedure in RPG?
what are the different types of arrays available in rpg ?
what is the sequence when using cursor?
how to pick up the changed records every time in a subfile after the first change made ?