View previous topic :: View next topic
|
Author |
Message |
dwijadas
New User
Joined: 20 Sep 2005 Posts: 17
|
|
|
|
Guys,
One of our CICS screen is for entering notes ( user can enter all sort of text) against an account.
It goes well for hardworking user (who like to type out on the screen) but some lazy user is copying the text from various application (excel,word,email)
Now the problem, various control character is getting added when user paste the text into CICS screen. Those character is invisible to user as they are "non displayable" and the CICS screen takes the text and store into files.
All good.
But when some one want to view the same info, CICS cant show. The screen hangs due to non displayable character.
I need ideas on how can I handle this situation ? I need to filter this while writing into the file for first time.
Thanks a ton in advance ! |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
You will not be able to display these non-displayable/non-printable characters on the screen. In order to do that, you'd need to convert them to two-bytes.
For example, X'BA' is a non-displayable character and will lock-up your terminal upon a SEND.
You would need to convert this to C'BA' (X'C2C1'). Enough of these and you'll run out of room as well as confuse the user, which can be a frightening situation.
You could use an INSPECT to convert these non-displayable characters to space (X'40') using a FROM and TO translate-table. This will avoid terminal lock-ups.
Bill |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Rather than validating databse data before sending it to the screen(s), suggest the code that inserts the rows into the database be upgraded to convert the "bad" values to spaces.
IMHO, it is a very bad practice to store "junk" and then have to deal with it later. . . |
|
Back to top |
|
|
dwijadas
New User
Joined: 20 Sep 2005 Posts: 17
|
|
|
|
As of now we advised user to add 2 line into IBM PCOM session. its working. no one is willing to touch program in order to handle those character.
Thanks to both of you for valuable input. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Thanks for the feedback.
Quote: |
no one is willing to touch program in order to handle those character. |
Which means there will be other "opportunities" to deal with the problem . . . |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
Quote: |
no one is willing to touch program in order to handle those character |
I'll do it for you. ( For a price ) |
|
Back to top |
|
|
|