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
Changes in above code.
FFILE1 IF E K DISK USROPN ->Reading pf1
FFILE2 IF E K DISK USROPN ->Reading pf2
FDSPF CF E WORKSTN USROPN ->dspy file
C OPEN FILE1
C OPEN FILE2
C OPEN DSPF
C NAME SETLL FILE1
C READ recd1 51
C *IN51 DOWEQ *OFF
C NAME CHAIN recd2 41
C N41 WRITE DSPFM1
C READ FILE1 51
C ENDDO
C CLOSE FILE1
C CLOSE FILE2
C CLOSE DSPF
C RETURN
1.File1 & File2 need NAME key field
2.In dsplay DSPFM1 need Name, Age and Roll filed.
Recd1 = record format of File1 , Recd2 = record format of
file2
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
using dfu, user will be able to ___________ from physical file?
What is dynslt?
when do you use f-spec. Continuation line ?
how can u check no of records in a file?
what is join logical file?
what are the three line types in rlu ?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .
what does defn do?
What is difference between rename and prefix?
difference between view and index ?
what is the disadvantage of using global variable?
Difference Between Interactive & Batch Job?
What is the use of jdftval in as400?
hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.
how can you execute a command from within an rpg program without calling a clp program?