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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a keyed physical file?

1186


under given circumstances, my cgi should link to another site. How to implement this?

663


Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?

934


how can I control the way a remote browser uses its cache?

696


what does dfu program you to do on a record?

840






what is maximum number of arrays allowed in rpg?

1365


is it possible to create a physical file without dds?

1359


what is the maximum number of files allowed in rpg?

1073


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?

819


how can you execute a command from within an rpg program without calling a clp program?

1358


how can I start a page in a new window?

873


what is the use of unique keyword and what level it is defined?

1073


what are the three types of keywords associated with printer file ?

1148


can you display a empty subfile?

886


what is the function of crtdupobj command?

1331