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
 

 

How to change lowercase to uppercase?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
sbachina

New User


Joined: 16 Jun 2006
Posts: 4

PostPosted: Fri Jun 16, 2006 3:14 am    Post subject: How to change lowercase to uppercase?
Reply with quote

Move Function Upper-case (Item-1) to Item-2 - compilation problem
Back to top
View user's profile Send private message

IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Fri Jun 16, 2006 3:16 pm    Post subject: Re: How to change lowercase to uppercase?
Reply with quote

need a tiny bit more detail of your problem please!!!!
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Fri Jun 16, 2006 7:19 pm    Post subject: Cobol program error
Reply with quote

sbachina,

Can you please explain the error in detail. Morethan that can you please mention what type of compiler you r using. Hope that may not support the fuction it seems. Even i got the error in the line
Code:
DISPLAY FUNCTION UPPER-CASE(STR1).


Quote:
10 DISPLAY "ENTER A STRING :".
11 ACCEPT STR1.
12 DISPLAY FUNCTION UPPER-CASE(STR1).
R089E line= 12 col= 20 "FUNCTION"
R089E line= 12 col= 29 "UPPER-CASE"
13 STOP RUN.
14
SOFTEK COBOL V1.003 SOURCE: UPRCASE.CBL DATE 16 Jun :6 TIME 09:43:55
PAGE: 00002

End of Compilation
2 Errors
0 Warnings
14 Source Lines
4 Symbols


Hope it varies with compilers.

If you place the error or query in detail it may help our members to solve it.
Back to top
View user's profile Send private message
sbachina

New User


Joined: 16 Jun 2006
Posts: 4

PostPosted: Mon Jun 19, 2006 6:41 pm    Post subject: Re: How to change lowercase to uppercase?
Reply with quote

Hi khamarutheen,

The following errors are I am getting during the compilation of the program. The type of compiler is CICS COBOL-11 with IMS. I am using IBM COBOL.

IGYPS2121-S "FUNCTION" was not defined as a data-name. The statement was discarded.
IGYPS0088-S The "MOVE" statement was invalid. Expected "TO", but found "UPPER-CASE". The statement was discarded.
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Mon Jun 19, 2006 8:15 pm    Post subject: Re: How to change lowercase to uppercase?
Reply with quote

Are you trying to convert Item-1 from lower to upper case, giving the result in Item-2?
if so then

INSPECT Item-1
CONVERTING
”abcdefghijklmnopqrstuvwxyz “TO
”ABCDEFGHIJKLMNOPQRSTUVWXYZ “

MOVE Item-1 to Item-2


will do the trick.
Back to top
View user's profile Send private message
sbachina

New User


Joined: 16 Jun 2006
Posts: 4

PostPosted: Mon Jun 19, 2006 8:28 pm    Post subject: Re: How to change lowercase to uppercase?
Reply with quote

Hi IQofaGerbil,


Item-1 is 1 char value but I don't what value in item-1. (Any character will be expected either A-Z OR a-z).

INSPECT Item-1
CONVERTING Variable-1 TO Variable-2
MOVE Item-1 to Item-2
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Mon Jun 19, 2006 8:32 pm    Post subject: Re: How to change lowercase to uppercase?
Reply with quote

my code will convert ANY lower case character to its upper case equivalent
if any other character is found it will be left as is.
Is that not what you want?
Back to top
View user's profile Send private message
sbachina

New User


Joined: 16 Jun 2006
Posts: 4

PostPosted: Mon Jun 19, 2006 8:57 pm    Post subject: Re: How to change lowercase to uppercase?
Reply with quote

Thank you IQofaGerbil,

Yes, It worked.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts How to change dataset attributes of m... ignich7 JCL & VSAM 3 Thu Jul 21, 2016 9:17 pm
No new posts GDG vsersion number change Raghu navaikulam JCL & VSAM 5 Fri May 27, 2016 4:49 pm


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