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

Converting Lower case to Upper Case in CICS


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Jun 15, 2010 3:39 pm
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
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 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 COBOL -Linkage Section-Case Sensitive COBOL Programming 1
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
Search our Forums:

Back to Top