Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Handle unprintable character on CICS screen

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
dwijadas

New User


Joined: 20 Sep 2005
Posts: 14

PostPosted: Wed Feb 17, 2010 2:23 pm    Post subject: Handle unprintable character on CICS screen
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Feb 17, 2010 5:56 pm    Post subject: Reply to: Handle unprintable character on CICS screen
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

Site Director


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

PostPosted: Wed Feb 17, 2010 8:42 pm    Post subject:
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: 14

PostPosted: Mon Mar 08, 2010 2:08 pm    Post subject: Reply to: Handle unprintable character on CICS screen
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

Site Director


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

PostPosted: Mon Mar 08, 2010 8:19 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us