Page 1 of 1

Not able to caps-on by default in profile.

PostPosted: Sun Jul 22, 2012 9:01 pm
by gokulNmf
Hi,

I created a PDS like "userid.poc.test.coblib" and added members to it. Its actually a pds for Cobol programs. Now the issue is, the profile has CAPS OFF as default. So every time I want to edit a member in this PDS I deliberately have to give CAPS ON. How to change the profile to have CAPS ON as default? How edit the profile to make it suitable for the USER?

PS: I went to help (F1) and checked, what was given is: The system by itself assume a suitable profile by accessing the PDS name. That's correct, Its having CAPSON by default for PROCLIB, but why its not taking for coblib is little confusing?

Re: Not able to caps-on by default in profile.

PostPosted: Mon Jul 23, 2012 7:35 am
by NicC
because if your member has even 1 byte of lower case data it switches to caps off. JCL does not allow lower case data except in comments so most proclib members will not have lower case characters hence the caps on stays as caps on. If you want caps on for your source code then makes sure everything, including quoted text, is in upper case. I believe that if you had read further in F1 then you would have found this information.

Re: Not able to caps-on by default in profile.

PostPosted: Mon Jul 23, 2012 9:36 am
by gokulNmf
Thanks Nic... was able to identify it and rectified.

Re: Not able to caps-on by default in profile.

PostPosted: Mon Jul 23, 2012 10:43 am
by Monitor
Just querious : Why do you want to write your COBOL-program(s) in upper-case?
Before the COBOL -85 standard, upper-case was mandatory. Many programmers still think "it has to be upper-case", because many programs are old and thus was written that way, and thats why they go on like that.
Mixed-case makes reading easier, as well as leaving rows empty hera and there.
What if all news-papers were written with upper-case only?