View previous topic :: View next topic
|
Author |
Message |
jctgf Currently Banned Active User
Joined: 04 Nov 2006 Posts: 109
|
|
|
|
hi,
i work with sdf2
i defined a field in a map with the und (underlined) attribute
it works well when i test the map on sdf2
when i run the program, the field in the map doesn't show up underlined though
what would be the problem?
how to change an attribute value dynamically? could u guys provide an example?
thanks |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Just a guess, I never used SDF (1 or 2) though I have installed it...grin... I learned the old way, harder, but when you have tightwad management,...
Maybe this will help:
Quote: |
HILIGHT specifies the default highlighting attribute for all fields in all maps in a mapset.
OFF is the default and indicates that no highlighting is used.
BLINK specifies that the field must blink.
REVERSE specifies that the character or field is displayed in reverse video, for example, on a 3278, black characters on a green background.
UNDERLINE specifies that a field is underlined.
The HILIGHT operand is ignored unless the terminal supports highlighting, as indicated by the RDO TYPETERM option HILIGHT(YES). |
Check this out and "report back", more help can follow. |
|
Back to top |
|
|
jctgf Currently Banned Active User
Joined: 04 Nov 2006 Posts: 109
|
|
|
|
hi
could u could provide an example?
thanks |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Ah, come on, what example? Have you checked the
Quote: |
RDO TYPETERM option HILIGHT |
?
Before anything can be done, you need to sift through the mapset, map and field definitions looking for overriding parms.
Taking a step back, the SDF testing and the actual were done on the same terminal definition? Dang, is SDF a TSO or CICS function???? |
|
Back to top |
|
|
jctgf Currently Banned Active User
Joined: 04 Nov 2006 Posts: 109
|
|
|
|
sdf runs under tso
it creates an assembler macro and a cobol copybook from the map u have defined
jc |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Ya, I know what SDF generates, look a the macro definitions for the csect and look at the CICS Programming Reference in the appendix for some understanding of the BMS macros.
The perceived (by TSO and/or CICS) terminal definitions between two sub-systems CAN be different! Investigate that. |
|
Back to top |
|
|
flyfort
New User
Joined: 01 Sep 2006 Posts: 2
|
|
|
|
Hi Buddy ...
I have recently worked with CICS screens. I too had same Problem so what I did was programmatic when u know that the control has entered the Flow for the first time You move to the Output Attribute of the Map Variable like this
Suppose the Map Field to be SC-CTRY-CDE. So the Output Variable will be SC-CTRY-CDEO and Input will be SC-CTRY-CDEI.So what u can do is this
MOVE ALL '_' TO SC-CTRY-CDEO
and then Send the MAP. By doing this you will get Underlines in the CICS SCREEN output.This is the Best way as far as I know. Underlines in SDF only Signifies that this is th Area that will be available for the output variable of the Screen to Display. Like if the Screen Portion while designing MAP in SDSF looks like
COUNTRY CODE ____________
CURRENCY CODE ____________
It will never mean all _ will be there in Actual Display of Map by SEND MAP command.It means that area will be display for Country Code and Currency Code.
Hope that it Explains Enough. U can Shoot me any doubts for CICS screens. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
By creating a Field in a Map the DFHMDF macro defines a field within a map that is defined by the DFHMDI macro. A map contains zero or more fields. For each field there is a DFHMDF macro-statement.
For underlining a Field, your parameter is
HILIGHT= UNDERLINE
As flyfort mentioned, for every field there are special generated declarations in the copybook. He had moved underscores in the OutputArea. But you could also change the Attribute-Byte of the mapfield.
This could be done by moving the adaquate Hex-string to the attribute-byte. Also there are standard BMS (BasicMappingSupport) attributes you could use. In your case it's DFHUNDLN.
Attention: I rember an APAR for a quiet similar situation:
CICS EXTENDED ATTRIBUTES OF BMS SCREENS LOST WHEN REDISPLAYED WHILE DEBUGGING
But i think that had been in summer-2004.
Regards, UmeySan
[fld] DFHMDF
[,POS={number | (line,column)}]
[,ATTRB=([{ASKIP | PROT | UNPROT[,NUM]}]
[,{BRT | NORM | DRK}]
[,DET]
[,IC]
[,FSET])]
[,COLOR={DEFAULT | color}]
[,JUSTIFY=([{LEFT | RIGHT}][,{BLANK | ZERO}])]
[{,INITIAL='char data' |
XINIT=hex data |
GINIT='graphic char data'}]
[,HILIGHT={OFF | BLINK | REVERSE | UNDERLINE}]
[,PS={BASE | psid}]
[,VALIDN=([MUSTFILL][,MUSTENTER][,TRIGGER])]
[,LENGTH=number]
[,GRPNAME=group-name | ,OCCURS=number]
[,PICIN='value']
[,PICOUT='value']
[,OUTLINE={BOX |
([LEFT][,RIGHT][,OVER][,UNDER])}]
[,SOSI={NO | YES}]
[,TRANSP={YES | NO}] (1)
[,CASE=MIXED] |
|
Back to top |
|
|
flyfort
New User
Joined: 01 Sep 2006 Posts: 2
|
|
|
|
Hi UmeySan
Thanks I never knew about DFHUNDLN and I am sure I will use this for my ongoing project. I am sure it should work. I understand that writing a Macro will provide much flexibility and would help a lot in lot many concerns but now a days at many places we use BMS. Its easy but not that Flexible. I had to tweak my Physical Generation for MAPS before I could use them as I want......
Thanks for this |
|
Back to top |
|
|
Krishna Velamur
New User
Joined: 22 Aug 2008 Posts: 22 Location: Hyderabad
|
|
|
|
Suppose the field is FIELD-1.
To move underlines dynamically, you can code this statement
MOVE UNDERLINES to FIELD-1H (copybook field). |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forums,
Please notice that you replied to a topic that has been inactive for about a year and a half. There might not be much more dialog. . . |
|
Back to top |
|
|
jctgf Currently Banned Active User
Joined: 04 Nov 2006 Posts: 109
|
|
|
|
it's quite the reverse! the answer is actually very useful!
thanks a lot! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Which is why we don't usually lock or delete inactive topics.
Every now and again, something very useful happens
d |
|
Back to top |
|
|
zos5415
New User
Joined: 29 Aug 2008 Posts: 18 Location: China
|
|
|
|
Before you can use the parm HILIGHT= UNDERLINE .
you must add MAPATTS=(COLOR,HILIGHT,PS), in the DFHMSD |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
The topic has been resurrected after
Code: |
... 2 year(s) - (months difference / 12 )
... 2 year(s) - (difference )
... 35 months
... 1053 days
... 25294 hours
... 1517658 minutes
... 91059480 seconds |
for related answers
and after
Code: |
... 1 year(s) - (months difference / 12 )
... 1 year(s) - (difference )
... 16 months
... 470 days
... 11291 hours
... 677489 minutes
... 40649340 seconds |
for mundane chat |
|
Back to top |
|
|
|