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 are dds required for subfile?
distinguish between terminating a program through seton lr and return?
what is a logical file?
. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?
can a indexed file be accessed in arrival sequence in rpg program?
A join logical file has how many record formats?
the output from my cgi is correctly interpreted by ms internet explorer, whereas netscape navigator would display it as a plain text. What should I do to have also netscape interpreting the html output from my cgi?
what are the three line types in rlu ?
What is the Difference between command attention key and command function key ?
which are the figurative constants used in rpg?
what are the various types of device files?
What is the as400 called now?
what are the uses of factor1, factor2 and result field for the rpg operation code parm?
what do we can do with the embedded sql statements?
what does check opcode is used?