Indicators in Display file
175 pts.
0
Q:
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.
ASKED: May 22 2009  8:24 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
535 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
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 Answered: May 22 2009  11:03 PM GMT by WaltZ400   535 pts.
Latest Contributors: Philpl1jb   24610 pts., Gilly400   23625 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Kapiltiwari   175 pts.  |   May 22 2009  1:13PM GMT

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

 

Gilly400   23625 pts.  |   May 22 2009  1:20PM GMT

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.

 

Kapiltiwari   175 pts.  |   May 25 2009  7:08AM GMT

Thanks Dear

 
0