Hi Friends, I need immediately answer for this:
Senario is that,I am selecting records from the display and
window subfile on the basis of Reason Code and some more
fields but spool file not showing the same records which i
have selected by display and window subfile.
Q.What could be the causes(resons)to not show records
properly (just selected in the display file and Window
subfile)according the selection criteria of the records.
Q.What would be the solutions to show records properly in
the spool file just as selected in in the display file and
window subfile according to the selection criteria.
Answer Posted / syam
1. Display Record to use "read" or "exfmt"opcode, then next
line should be "Write" opcode.
2. If it is subfile to use "Readc" opcode, then next line
should be "Write" opcode.
Once you read,immediatly write to spool then go for next
read. You can put it on loop.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Hello, I have created a CMD type object. In one of the fields in Display file , I would like to see All the Source files present by pass the name of Library. Tried using CHoice(Keyword) and Choicepgm on PARM , but doesn't seems to be working. Any help please..
different type of cursor?
What is the difference between crtdupobj and copyf?
How to Define a Procedure in RPG?
what is the use of dspatr(mdt) keyword?
Difference Between Call & Sbmjob?
what are all the contents of subfile?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
What is the difference between physical file and logical file?
What is the maximum number of subfiles that can be specified in a display file?
Apart from opening of a file do we have any other use of USROPN?
what is the length of a variable in rpg?
what is the purpose of overrides?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .
Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?