Hi, I have a load all subfile which is used to display the records of a file on the screen. I have the previlage to either enter/delete the  records on screen, which will be shown on the screen.Now, my SFLSIZE is 16 And SFLPAG  is 15. now i have 25 records on display. now i  am deleting 20th record,  after pressing F11(F11=delete) it got deleted. but my subfile is showing the first page only....but i want it to display the second page from record got deleted.what should be done here..?.. any one please explain me  in detail. if possible with a sample code.  Thanks!
							
						
					Announcement
				
					Collapse
				
			
		
	
		
			
				No announcement yet.
				
			
				
	
How to keep display the same page of the subfile from where record got deleted in as4
				
					Collapse
				
			
		
	X
- 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
Re: How to keep display the same page of the subfile from where record got deleted in
Hi DAG0000,
Thanks for the reply. I know only SFLRCDNBR will do the job. But when actually i need to pass RRN to SFLRCDNBR. I.e before EXFMT or else some where. i Have a Defined SFLRCDNBR in Display file as..
WDRRN 4s 0H SFLRCDNBR
and, in the RPG...
*LIKE DEFINE WDRRN RRN .
Now my subfile with page(14) size (15) Is intiaaly displaying 35 Records. now i want delete the 30th Record (from page 3). And then it need to show the remaining 34 Records, but then it should be displaying the 3rd page instaead of first ..as of now it is diaplayin only first. Please tell me the way to go about it, in detail...Thanks!!
Comment
 - 
	
	
	
		
	
	
		
		
		
		
		
		
		
	
	
Re: How to keep display the same page of the subfile from where record got deleted in
You need to know the RRN of the subfile record you are working with. Either record the RRN as a hidden field in the subfile record when you write it or use the INFDS of the display file at pos 378-379.
Comment
 



Comment