350 pts.
 Indicators in Display file
i want to add different indicators to DSPATR keyword of every feild. but fields are more than indicators.if i provide same to all, all become on after doing on for particular field.Plz sort out this problem.

Software/Hardware used:
ASKED: May 22, 2009  8:24 AM
UPDATED: May 25, 2009  7:08 AM

Answer Wiki:
Hi, What are you trying to achieve? Do you have more than 99 fields on your screen? Regards, Martin Gilbert. //////////////////////////////////////// I agree with Gilbert - do not understand question but here's some hints Create a seperate line for each with a different indicators as reqired. With care, the same indicators can be used for different meanings on differnt records. Indicators 1-24 are generally reserved for function key related activities. FLD1 3 B 5 15 31 DSPATR(PR) 32 DSPATR(RI) FLD2 3 B 5 15 33 DSPATR(PR) 34 DSPATR(RI) FLD3 3 B 5 15 31 O 33 DSPATR(PR) 32N34 DSPATR(RI) Indicators can also be used with the and/or status -- first three PR uses 31 or 33 Multiple indicators - FLD3 RI are an and statement - in32 on AND in34 not on. Phil ************************************************ Scrap the indicators and try using DSPATR(&Field). With this technique you define a field of type P and 1 character long that is associated with the field you want to change the attributes on. Say you have a field called ACCT. Add a DSPATR(&EACCT) on the field and define a P type field named EACCT on the same display file format. When you want to display a particular attribute like reverse image etc, you load the hex value of the attribute into EACCT before displaying. Always make sure you reset hex values back to normal when not displaying errors etc. The DDS manual in the Info Center online has a list of the attribute hex values you can set. Walt
Last Wiki Answer Submitted:  May 22, 2009  11:03 pm  by  philpl1jb   44,190 pts.
All Answer Wiki Contributors:  philpl1jb   44,190 pts. , Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Ok I explain….
My program is using two display files having 5 records format each.i have to display 130 fields with DSPATR . it means i have repeated same indicators to different record format.suppose i display ‘B’ window screen by selecting ‘YES’ on ‘A’ screen . both screen having same indicators . if i seton indicators of screen “B”, indicators of Scren ‘A’ too seton . on displaying both screen having reverse image attribute.

…………………this is the problem

 350 pts.

 

Hi,

I see your dilemma. What you can do (an old S/36 trick) is to save the indicators to an array and reset them all between screens. Something along these lines (syntax may not be correct) :-

C EXFMT SCREENA
C MOVEA*IN SCRA_IN
C MOVEA*ALL’0′ *IN
etc….
C EXFMT SCREENB
C MOVEA*IN SCRB_IN
C MOVEA*ALL’0′ *IN

Regards,

Martin Gilbert.

 23,625 pts.

 

Thanks Dear

 350 pts.