View previous topic :: View next topic |
Author |
Message |
taurian Beginner
Joined: 20 May 2004 Posts: 12 Topics: 6
|
Posted: Wed Nov 03, 2004 10:39 am Post subject: Help on BMS attribute |
|
|
Hi,
I checked for this topic..but did not find one to this specific case
In my map I have declared a field default color as yellow and the field attributes are NORM,UNPROT,FSET,IC
now in my program in case of error I am trying to move DFHRED to the field attribute, it is making the field protective..why is this happening?
Am I doing something wrong  |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12383 Topics: 75 Location: San Jose
|
Posted: Wed Nov 03, 2004 12:22 pm Post subject: |
|
|
taurian,
Are sure that you are moving DFHRED to "C" suffix field?
Quote: |
MOVE DFHRED TO varC
|
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
taurian Beginner
Joined: 20 May 2004 Posts: 12 Topics: 6
|
Posted: Wed Nov 03, 2004 3:02 pm Post subject: |
|
|
Hi Kolusu,
I did not understand...if the filed name is 'OPTION' the variables generated are
OPTIONL
OPTIONF
OPTIONA
OPTIONI
OPTIONO
will it generate a field OPTIONC? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12383 Topics: 75 Location: San Jose
|
Posted: Wed Nov 03, 2004 3:25 pm Post subject: |
|
|
taurian,
Since you defined the COLOR attribute you should have a Suffix Field generated after the compilation of the map.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
taurian Beginner
Joined: 20 May 2004 Posts: 12 Topics: 6
|
Posted: Wed Nov 03, 2004 4:19 pm Post subject: |
|
|
Though I used color When I generate the map Variable with C suffix is not getting generated..should I do some changes
Code: |
DFHMSD:
LANG=COBOL,
MODE=INOUT,
TERM=ALL,
CTRL=(FREEKB,FRSET),
STORAGE=AUTO,
TIOAPFX=YES,
COLOR=WHITE
DFHMDF:
OPTION DFHMDF POS=(10,72),
LENGTH=1,
ATTRB=(NORM,UNPROT,FSET,IC),
PICIN='X',
PICOUT='X',
COLOR=YELLOW
|
is something wrong with this? |
|
Back to top |
|
 |
BigDaddy Beginner
Joined: 05 Nov 2004 Posts: 18 Topics: 5 Location: AMERICA
|
Posted: Fri Nov 05, 2004 9:33 am Post subject: |
|
|
Taurian, I am a little rusty on bmsmaps ( I have been using GTB) but I think you need to specify that you are using extended attributes on your map. This should give you your color field (OPTIONC). |
|
Back to top |
|
 |
Mickeyd Beginner
Joined: 02 Jan 2003 Posts: 27 Topics: 0
|
Posted: Fri Nov 05, 2004 10:27 am Post subject: |
|
|
THis is an example of what you need to use the color field.
Code: |
DFHMSD TYPE=&SYSPARM,
MODE=INOUT,LANG=COBOL,STORAGE=AUTO,TIOAPFX=YES,
MAPATTS=(COLOR,HILIGHT),DSATTS=(COLOR,HILIGHT),
CTRL=(FREEKB),TERM=3270-2,CURSLOC=YES
|
|
|
Back to top |
|
 |
Mike Chantrey Intermediate
Joined: 10 Sep 2003 Posts: 234 Topics: 1 Location: Wansford
|
Posted: Fri Nov 05, 2004 10:33 am Post subject: |
|
|
Try adding
DSATTS=COLOR,
and
MAPATTS=COLOR,
to your DFHMSD
and you should find you get the OPTIONC field you need to move DFHRED to. |
|
Back to top |
|
 |
Mike Chantrey Intermediate
Joined: 10 Sep 2003 Posts: 234 Topics: 1 Location: Wansford
|
Posted: Fri Nov 05, 2004 10:34 am Post subject: |
|
|
My post is now redundant - Mickeyd posted while I was typing... |
|
Back to top |
|
 |
taurian Beginner
Joined: 20 May 2004 Posts: 12 Topics: 6
|
Posted: Sat Nov 06, 2004 4:14 pm Post subject: |
|
|
Thanks Mickeyd and Mike it worked..  |
|
Back to top |
|
 |
|
|