Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WRITE AND REWRITE

Status
Not open for further replies.

claudeb

Programmer
Nov 23, 2000
140
CA
Hi,
To enter a new value in a table i use a screen. for some reason, we have been asked to keep the entry in small lettres! Every time that the entry is called (for update, inquire...) it is in capital letters. There is no call to an UPPERCASE or LOWERCASE in the program that processes this screen.
Does a WRITE or a REWRITE procedure, change the data to upper case, by default ?
thanks
 
Well, I'm not really sure what your question is.

COBOL is not case sensitive. Using capitol letters only was the standard when it was developed (look up the history of punch cards and Hollerith code if you're so inclined).

WRITE will write new data record to a file. REWRITE will write out an existing record to a file. Think of it as an update.

If you are entering in small letters and it gets "magically" changed to caps when writing the data to a file, I would imagine that this is your compiler that has created this function. My guess is the idea behind it is to ensure the information is all in the same case to ensure correctness for sorts and compares.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top