View previous topic :: View next topic
|
Author |
Message |
waseem0424
New User
Joined: 28 Sep 2017 Posts: 3 Location: India
|
|
|
|
Hi!
I have a requirement to change some of the text in a variable in CICS. When I'm trying to pass color to Field attribute the whole field will change but I want only some of the text from that field to be highlighted with different color.
Ex: I have a variable of length 79 declared on a map. Data is gonna come from another system and Its length will be anything from 1 to 79. there is a text called Label in data which I want to highlight. other text in the same variable should remain Green. If Variable is declared as 79. I want to highlight 6 characters in that variable it may exist any where in that variable.
Input 1 : xxxxxxxxxxxxxLABELxXXXXXXX
Input 2 :XXXXXXXXXXXXXxasdaxxxxxxxxxxxxxxLABELXXXX
Is there any way to acheive this.. And I want to utilize the whole line without any space.
|
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Ah, another "requirement".
Who came up with it, some PHB, or you yourself ("which I want to highlight"), to fancify your output?
It's possible, but you'll have to overlay BMS maps on BMS maps. |
|
Back to top |
|
|
waseem0424
New User
Joined: 28 Sep 2017 Posts: 3 Location: India
|
|
|
|
It is actually a requirement from business. I'm not able to display it through BMS MAp overlay as well because positions are not fixed they vary for different data .
My screen contains 17 Lines, Each of 79 character length. I have declared each line as a single variable and displaying the lines dynamically from cobol program as per the length of data. In this data there will b three labels which may come anywhere and I have to highlight them. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Your requirement is, and I'm pretty sure about that, impossible to fulfil without using multiple BMS maps. Unlike ISPF, CICS doesn't know the concept of shadow variables! |
|
Back to top |
|
|
waseem0424
New User
Joined: 28 Sep 2017 Posts: 3 Location: India
|
|
|
|
Thank you Prino,
Is it possible to generate BMS Maps in Cobol program dynamically? If yes then how? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
waseem0424 wrote: |
Is it possible to generate BMS Maps in Cobol program dynamically? If yes then how? |
BMS Maps are load modules, and you (general "you", not you you!) can generate them dynamically with a COBOL program (if COBOL supports RECFM=U), but you wouldn't be able to install them in CICS anyway.
Far more importantly, adding load modules dynamically to a production library would open a hole the size of a galaxy in the system integrity! |
|
Back to top |
|
|
|