Q
Problem solve Get help with specific problems with your technologies, process and projects.

Uppercase to lowercase in VS COBOL II

What do I need to do to change a field from upper- to lowercase in VS COBOL II?
The easiest thing to do would be to start using the newer compiler (I am sure you have it installed somewhere) and use the built in function, LOWER-CASE. (By the way, VS COBOL II went end of service in 2001.) LOWER-CASE is available in all IBM COBOL compilers since 1991. It works like this:
Move Function Lower-Case(INPUT-FIELD) To OUTPUT-FIELD 
In VS COBOL II, you could use INSPECT CONVERTING, something like:
Inspect INPUT-FIELD Replacing All 'A' by 'a' 
                          'B' by 'b' 
                          'C' by 'c' 
and so on.

Dig Deeper on IBM system z and mainframe systems

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

SearchServerVirtualization

SearchCloudComputing

Close