View previous topic :: View next topic
|
Author |
Message |
cmsmoon
New User
Joined: 17 Jun 2010 Posts: 75 Location: Chennai
|
|
|
|
Hi Friends,
I have requirement to get the length value from map dynamically..
For example :
TBL tye : ________ ( 8 char )
TBL name: ________________ ( 16 char)
Intiallay i defined as "TBL name" length is 16.
when TBL type is AGE,it allow the TBL name just 2 char from front.remaining should be stopper field |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
You cannot. Just use the facilities offered by whatever language you're using to to check that chars 3-16 are blank. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Insert a X'1DF0' at the necessary position in the target map-field, such as the 3rd-position (limits keyable value to two positions). X'1D' is a stopper-byte and X'F0' represents an ASKIP,NORM attribute-byte (which is DFHBMASK, found in copybook DFHBMSCA).
Somewhat offbeat, but it does work.... |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Bill O'Boyle wrote: |
Insert a X'1DF0' at the necessary position in the target map-field, such as the 3rd-position. X'1D' is a stopper-byte and X'F0' represents an ASKIP,NORM attribute-byte.
Somewhat offbeat, but it does work.... |
And will probably screw up the formatting of the rest of the screen. Also, it requires an "ENTER" between entering the "TBL type" and further processing, to set up this further field, where most users would probably TAB to it. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Prino,
Actually, when I was coding, I used this technique quite a bit and the map alignment/formatting was OK. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
I know I tried (AD 1994-ish) this type of messing around to display multi-color error messages, but due to the fact that CICS/BMS attribute bytes are removed from the stream, maps would always come out in very (un)funny shapes and sizes.
However, as I don't readily have access to CICS (FanDeZhi's CICS has been kaputt for months) I cannot verify this behaviour now. |
|
Back to top |
|
|
|