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
what if my system I runs with system value qccsid 65535?
what are necessary keywords to code message subfile?
define a shared access path?
how do handle file exception/error?
difference between sflrcdnbr and sflnxtchg?
what is the purpose of putovr (put with explicit override) keyword?
what is the difference between udate and the system date?
how you will know whether you are in sfldrop or sflfold mode?
What is difference between rename and prefix?
How to reverse a string using RPG?
How can we arrange duplicate records in a file?
what is the purpose of dynslt keyword?
What Is Ddm ?
what is sflrolval?
which single rpg opcode performs both setll and reade?