Q.Hi All friends,


I have one Question, I have three fields in display file
SUP LOT, ISSUED to Prod and Line Grp.

Field SUP LOT is mentioned in one field reference file
WRSLT and key field as a key field LP.Fields ISSUED to
PROD,Line GRP are mentioned in the another Field reference
file WMDTF.
So I want to read SUP LOT on the basis of key field LP from
the first file WFSLTand then i want ot read another two
fields ISSUED to DATE and LINE GRP from second file on the
basis of SUP LOT, which i got from first file.Now i want to
display these fields in the display file DSPWMMS.

but Condition is that 'Supplier Lot,ISSUED to Prod and
Line Grp will not be shown if their respective fields are
blanks/Zero.

Please Let me Know coding part of this senerio and what
would be coding for display file to now shown fields if
fields are blanks/zero.

My mob. no. is 9836300345.

Please reply me asap.



Q.Hi All friends, I have one Question, I have three fields in display file SUP LOT, ISSUED to..

Answer / syam

1. Check PF and Display file variable name should be same.
If not you need to use "move or z-add" opcode.
2. 2nd file record not Chain properly bcoz inticator *on
and *off not correct, file may be end of record (use setll
*loval") be4 read, make sure after chain record "write
dspmwms" used.

Please paste your code here so we cand find mistake.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what is the syntax for plist?

0 Answers   IBM,


what are the different opcodes available in rpg for database access ?

1 Answers   IBM,


Difference Between Skip Before & Space Before?

0 Answers   IBM,


We have seen no of parameter list but If we mention like this 'CALL PROGNAME PLIST ' how to know No of parameter name of program ?

2 Answers   IBM,


Where would you use Override Data Base File?

4 Answers  






which are the relational operators in rpg?

0 Answers   IBM,


What is the default access path of a file?

0 Answers  


What is the purpose of the following FORDHDR1 CF E WORKSTN $2SFN SFILE FMT2

1 Answers  


how will you display a particular page in subfile ?

1 Answers   IBM,


What are the two types of read performed on data queues?

1 Answers  


How to debug a batch job when it is in messagewait(mswg) status. I know the steps for batch ebugging, but im confusing with when we submit any job for batch debug we put in held state. So here also do same thing or any other way?

0 Answers  


load all subfile logic in sqlrpgle and when updating particular record it must be lock form other jobs (not a file)?

1 Answers   Wipro,


Categories