IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Handle unprintable character on CICS screen


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dwijadas

New User


Joined: 20 Sep 2005
Posts: 17

PostPosted: Wed Feb 17, 2010 2:23 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Feb 17, 2010 5:56 pm
Reply with quote

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. icon_eek.gif

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Feb 17, 2010 8:42 pm
Reply with quote

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
View user's profile Send private message
dwijadas

New User


Joined: 20 Sep 2005
Posts: 17

PostPosted: Mon Mar 08, 2010 2:08 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 08, 2010 8:19 pm
Reply with quote

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 . . . icon_neutral.gif
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Tue Mar 09, 2010 3:19 am
Reply with quote

Quote:
no one is willing to touch program in order to handle those character


I'll do it for you. ( For a price ) icon_lol.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top