IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to control the display of data field programmatically?


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jacobdng

New User


Joined: 27 Aug 2006
Posts: 51
Location: Taiwan

PostPosted: Wed Apr 04, 2007 8:25 am
Reply with quote

I need to set certain data field to be highlighted. I know that I can manipulated how to display the data field in a COBOL program after referencing the other usage like the following :

05 ATTR-UNPROT-FSET PIC X(01) VALUE 'A'.
05 ATTR-PROT-ASKIP-FSET PIC X(01) VALUE '1'.
05 ATTR-UNPROT-BRT-PEN-FSET PIC X(01) VALUE 'I'.
05 ATTR-PROT-ASKIP-DRK PIC X(01) VALUE '@'.

Please advise the one-byte combination of the attribute field/

Thanks in advance

Jacob
Back to top
View user's profile Send private message
jacobdng

New User


Joined: 27 Aug 2006
Posts: 51
Location: Taiwan

PostPosted: Wed Apr 04, 2007 10:45 am
Reply with quote

I have found that there are DFH constants serving the purpose.

publib.boulder.ibm.com/infocenter/txformp/v6r0m0/index.jsp?topic=/com.ibm.cics.te.doc/erziai00150.htm
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Wed Apr 04, 2007 3:27 pm
Reply with quote

Hi !

Yes, you could move the relating DFH Keywords to the attibute Byte of
the map-field for changing the attibutes of a map-field for the next send-map.

Also use the search-function in this forum. This topic had been descibed
in details in former time here.

Regards, UmeySan
Back to top
View user's profile Send private message
divya_maddi

New User


Joined: 03 Nov 2005
Posts: 33

PostPosted: Mon Apr 09, 2007 6:03 pm
Reply with quote

move the following value to the attribute of the screen variable. For example if your screen variable is sc-name and then the attribute variable is sc-name-a, then move one of the following to sc-name-a:

ATTR1234
- 1 - U = UNPROT - P = PROT
- 2 - A = ALPHA - N = NUM
- 3 - N = NORM - B = BRT - D = DRK
- 4 - O = MDT-OFF - M = MDT-ON


ATTRUANO PIC X VALUE ' '.
ATTRUANM PIC X VALUE 'A'.
ATTRUABO PIC X VALUE 'H'.
ATTRUABM PIC X VALUE 'I'.
ATTRUADO PIC X VALUE '<'.
ATTRUADM PIC X VALUE '('.
ATTRUNNO PIC X VALUE '&'.
ATTRUNNM PIC X VALUE 'J'.
ATTRUNBO PIC X VALUE 'Q'.
ATTRUNBM PIC X VALUE 'R'.
ATTRUNDO PIC X VALUE '*'.
ATTRUNDM PIC X VALUE ')'.
ATTRPANO PIC X VALUE '-'.
ATTRPANM PIC X VALUE '/'.
ATTRPABO PIC X VALUE 'Y'.
ATTRPABM PIC X VALUE 'Z'.
ATTRPADO PIC X VALUE '%'.
ATTRPADM PIC X VALUE '_'.
ATTRPNNO PIC X VALUE '0'.
ATTRPNNM PIC X VALUE '1'.
ATTRPNBO PIC X VALUE '8'.
ATTRPNBM PIC X VALUE '9'.
ATTRPNDO PIC X VALUE '@'.
ATTRPNDM PIC X VALUE QUOTE.
Back to top
View user's profile Send private message
jacobdng

New User


Joined: 27 Aug 2006
Posts: 51
Location: Taiwan

PostPosted: Tue Apr 10, 2007 6:25 am
Reply with quote

Dear divya,

Thanks for your information.

Jacob
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts SCOPE PENDING option -check data DB2 2
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
Search our Forums:

Back to Top