Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2504
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 FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts Need to track the CICS transaction fr... sam8051 CICS 3 Mon Aug 07, 2017 3:11 pm
No new posts RFE: DB2 support for mixed case names. Pedro DB2 0 Tue Jul 04, 2017 1:32 am
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us