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
what does the opcode free do?
what is the use of jdftval in join logical file?
what opcode will be used to test the zone of a character field?
What is the default access path of a file?
What is difference between rename and prefix?
what would be the effect on the field where reverse image, underline and highlight display attributes are active ?
which indicator is used for read?
which are the relational operators in rpg?
Using %check we are checking monika in mona what is output? What is %SCAN?
how do you specify page overflow indicator for printer files in rpg?
how do you know that records are locked?
Why we are not able to perform insert delete and update operation in Join logical file?
what are the different types of arrays available in rpg ?
how do you pass parameters in cl?
What Does 'sr' In Columns 7-8 Of C Specs Mean?