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


Please Help Members By Posting Answers For Below Questions

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..

1780


different type of cursor?

636


What is the difference between crtdupobj and copyf?

676


How to Define a Procedure in RPG?

1220


what is the use of dspatr(mdt) keyword?

1443






Difference Between Call & Sbmjob?

772


what are all the contents of subfile?

989


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

608


What is the difference between physical file and logical file?

587


What is the maximum number of subfiles that can be specified in a display file?

1143


Apart from opening of a file do we have any other use of USROPN?

955


what is the length of a variable in rpg?

965


what is the purpose of overrides?

1017


the maximum number of subfiles that can defined in a rpg program for one display file is ___ .

2159


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?

596