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 is the function of cpyf command?
how you will find an error which is not in the first page of the subfile without using rolldown key?
define data structure?
why is the declare cursor statement is used for?
what is the difference between udate and the system date?
what is overlay?
Can level check error occur if we do chgpf?
What are the types of data structure in as400?
can you specify a display file to be used in the following modes input,output, or combined modes ?
what are dds required for subfile?
how you will know whether you are in sfldrop or sflfold mode?
where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?
what does vldcmdkey means?
where can you specify an indicator in lokup operation?
in which specification the report layout can be defined?