× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: Same field in the same screen
  • From: "Goodbar, Loyd (AFS-Water Valley)" <LGoodbar@xxxxxxxxxxxxxx>
  • Date: Fri, 19 Nov 1999 10:16:59 -0500

Or, if the intention is to display the same data more than once on the
screen:
1) define multiple fields in dds
2) in rpg (iv), overlay n-1 fields to the first field
3) change the value of the first field only, the rest follow

actual sample whipped together:
dds:
A                                      DSPSIZ(24 80 *DS3)     
A                                      CA03(03)               
A          R MYREC                                            
A                                  1  3'My field ...:'        
A            MYFIELD       10   O  1 17                       
A                                  2  3'My field (1):'        
A            MYFIELD1      10   O  2 17                       
A                                  3  3'My field (2):'        
A            MYFIELD2      10   O  3 17                       
A                                  5  3'Press F3 to exit'     

rpgiv:
fmultd     cf   e             workstn                    
d myfieldds       ds                                     
d  myfield                                               
d  myfield1                           overlay(myfield)   
d  myfield2                           overlay(myfield)   
c                   eval      myfield = 'Hello'          
c                   dow       not *in03                  
c                   exfmt     myrec                      
c                   enddo                                
c                   eval      *inlr = *on                

HTH,
Loyd



> -----Original Message-----
> From: John P Carr [SMTP:jpcarr@tredegar.com]
> Sent: Friday, 19 November, 1999 7:40 AM
> To:   Mailing List AS400
> Subject:      Re: Same field in the same screen
> 
> 
> >Hi everybody,
> >In a DDS screen : Is there a way to put a variable output field more than
> >one time in the same screen without create new fields.
> >Thanks
> >Eric Panissard
> 
> No.
> If what you mean by "Screen"  is a format.
> 
> Yes
> If what you mean by "Screen"  is multiple formats displayed together
> 
> 
> Put variable on two different formats and display them both.
> This may seem stupid to the casual observer however.
> 
> John carr
> 
> 
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
> MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.