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 is join logical file?
If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...
what are the important factors in error message subfile ?
To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?
what are different record spacing keywords in rlu ?
what is a program described file in rpg?
using dfu, user will be able to ___________ from physical file?
What is file information data structure(infds) in as400?
Using %check we are checking monika in mona what is output? What is %SCAN?
what is the function of cpyf command?
how do you read data area in an rpg program?
what are various techniques to pass parameters from one program to another?
which indicator is used for read?
at what level s,o are defined and what they will do?
What is the draw back of Procedures? why we are going to Modules?