Page 1 of 1

Stopping upper case in ISPF.

Posted: Sun Jan 26, 2014 9:21 pm
by Ramesh_Mainframe
Hi,

When I edit and save a member or data-set in the ISPF editor then the editor makes all signs in upper case. At times it is not good. How can I change this?

Regards,

Re: Stopping upper case in ISPF.

Posted: Sun Jan 26, 2014 9:43 pm
by Robert Sample
What do you mean by "signs"? CAPS OFF is the primary command to allow upper and lower case; however, this typically only affects alphabetic characters.

Re: Stopping upper case in ISPF.

Posted: Wed Apr 30, 2014 4:39 pm
by Ramesh_Mainframe
I'm sorry I meant alphabets only.

I've used CAPS OFF but whenever I open the member again after a fresh log-in to the system, it comes back to the CAPS ON?

Re: Stopping upper case in ISPF.

Posted: Wed Apr 30, 2014 4:58 pm
by zprogrammer
Can you try

Code: Select all

PROF LOCK 
on command line?

Re: Stopping upper case in ISPF.

Posted: Wed Apr 30, 2014 5:04 pm
by Robert Sample
You need to find the ISPF bookshelf and read up on profiles. Also, if a data set has no lower-case characters when ISPF edit opens the data set, there is an implicit CAPS ON done if CAPS OFF is set; the opposite is also true (CAPS OFF will be done if there are lower case characters).

Re: Stopping upper case in ISPF.

Posted: Fri May 02, 2014 8:35 pm
by Ramesh_Mainframe
Robert Sample wrote:You need to find the ISPF bookshelf and read up on profiles. Also, if a data set has no lower-case characters when ISPF edit opens the data set, there is an implicit CAPS ON done if CAPS OFF is set; the opposite is also true (CAPS OFF will be done if there are lower case characters).
So what should I do to keep it all CAPS?

Re: Stopping upper case in ISPF.

Posted: Fri May 02, 2014 8:47 pm
by Robert Sample
From the ISPF Edit and Edit Macros manual in the ISPF bookshelf:
1.2.1.4 Locking an edit profile
Once you have an edit profile exactly the way you want it, you can lock it. To do this, type PROFILE LOCK and press Enter. The edit profile is saved with all the current modes, options, and temporary lines, and it is marked so that the saved copy of the edit profile is not changed. Usually, each time you begin an editing session the edit profile you start with is exactly the way you locked it. The exceptions are caps, number, stats, and pack, which are made to match the data and are noted with messages. You can change a mode during an editing session, but if the edit profile is locked, the change affects only the current session; it does not affect any later sessions.
Note that caps are explicitly set to match the data -- even if you lock the profile -- so basically, what you want to do CANNOT be done.

Re: Stopping upper case in ISPF.

Posted: Sun Jun 01, 2014 1:50 pm
by prino
Robert Sample wrote:From the ISPF Edit and Edit Macros manual in the ISPF bookshelf:
1.2.1.4 Locking an edit profile
Once you have an edit profile exactly the way you want it, you can lock it. To do this, type PROFILE LOCK and press Enter. The edit profile is saved with all the current modes, options, and temporary lines, and it is marked so that the saved copy of the edit profile is not changed. Usually, each time you begin an editing session the edit profile you start with is exactly the way you locked it. The exceptions are caps, number, stats, and pack, which are made to match the data and are noted with messages. You can change a mode during an editing session, but if the edit profile is locked, the change affects only the current session; it does not affect any later sessions.
Note that caps are explicitly set to match the data -- even if you lock the profile -- so basically, what you want to do CANNOT be done.
Oh yes, it can be done! Using an initial macro you do as you please, including such follies as setting a JCL profile for COBOL. :mrgreen:

Re: Stopping upper case in ISPF.

Posted: Wed Mar 16, 2016 12:33 pm
by Ramesh_Mainframe
@prino,

Can you please share an example ?

Re: Stopping upper case in ISPF.

Posted: Wed Mar 16, 2016 6:29 pm
by nicc
Why do you want an example of how to screw things up?

Re: Stopping upper case in ISPF.

Posted: Wed Mar 23, 2016 7:35 am
by Ramesh_Mainframe
nicc wrote:Why do you want an example of how to screw things up?
I did not understand that prino was saying that. I thought there is some proper way of executing some macro he is telling about. I did not know it's about screwing things.