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
 

 

Converting Lower case to Upper Case in CICS

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

New User


Joined: 11 Feb 2008
Posts: 35
Location: Chennai

PostPosted: Tue Jun 15, 2010 12:35 pm    Post subject: Converting Lower case to Upper Case in CICS
Reply with quote

I need to convert the user input given in lower case to upper case. I have read that this usually occurs by default but our terminals seem to have set to read the input as is. I have tried using the below logic from a similar topic here but this is not working. Can anybody help me as to where the problem is?

Code:
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*                CHANGE TERMINAL TO MIXED CASE                *
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
 9600-CHANGE-CASE-SETTING.

          EXEC CICS SET
          TERMINAL (EIBTRMID)
          UCTRANST (DFHVALUE(UCTRAN))
          RESP    (WS-CICS-RESPONSE)
          END-EXEC
     .
/
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: Tue Jun 15, 2010 3:39 pm    Post subject: Reply to: Converting Lower case to Upper Case in CICS
Reply with quote

Talk to your System's Support staff and have them define a Lower Case Profile for your transaction-id.

Then, programatically, you can perform the translation.

Bill
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Thu Jun 17, 2010 7:38 pm    Post subject:
Reply with quote

yes, because you changed the original code to suit you and not what was supplied.

Code:
05 WS-UCTRANS                 PIC 9(08) BINARY VALUE 0.

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*                CHANGE TERMINAL TO MIXED CASE                *
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
 9600-CHANGE-CASE-SETTINGS.

     EXEC CICS INQUIRE
          TERMINAL (EIBTRMID)
          UCTRANST (WS-UCTRANS)
          RESP     (WS-CICS-RESPONSE)
          END-EXEC

     IF WS-UCTRANS = DFHVALUE (UCTRAN)
       MOVE DFHVALUE (TRANIDONLY) TO WS-UCTRANS
     ELSE
       MOVE DFHVALUE (UCTRAN)     TO WS-UCTRANS
     END-IF

     EXEC CICS SET
          TERMINAL (EIBTRMID)
          UCTRANST (WS-UCTRANS)
          RESP     (WS-CICS-RESPONSE)
          END-EXEC
     .
/
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
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


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