Actually, it is not new to that release. It has been that way for quite a number of releases.
Actually, it is not new to that release. It has been that way for quite a number of releases.
Thanks DG, we did make a rather large jump in OS, hopefully we'll be on top of it now.
dglawrhts wrote: > > Actually, it is not new to that release. It has been that way for quite a number of releases. RPG has always been case sensitive for program calls. Even OPM RPG works this way.
I have to disagree Barbara. From my example you can see it was in lowercase before, when we were at V4R5, and it worked. So, somewhere along the way, I'll guess V5R1 or so, something changed. Going to go read about all the cool new stuff in V5R3 now. Gotta go!
I suspect that the source you compiled is not the source that was used in your previous *PGM object. The CALL has been case sensitive, if my fading memory serves me right, all the way back to S/38 days. Hopefully the program name on the call is the only thing that was changed in the source since the *PGM was created back on V4R5.
If it has been case sensitive then all my programs should be blowing up. I'm on V5R1 and 90% of the calls I've done have been lower case. In fact, the entire source is usually in lower case. I have yet to have a problem calling programs. It sounds to me like this is not an issue (exceptable) in releases at least prior to V5R2. But in V5R3 it is strickly enforced. I think it is silly considering we cannot really create a program (iSeries RPG or RPG ILE) that the object is lower case.
CALLP and Function calls are not case sensitive unless you add a keyword on the prototype. Any object reference coded inside a quoted string (such as CALL 'PGMX') has been case sensitive for some time - as far as I can recall. I have had NUMEROUS occasions where my students in labs have had their code fail due to this reason. This goes all the back to V4R2 as best I can remember.
Somebody has got to be wrong here. Either you could or couldn't call the program using lowercase in earlier releases. The standard in every shop I've ever worked in has been to use Upper case. I've always assumed that it was because the OS didn't allow (or automagically translate) lower case but I can't prove it now, since we're on V5R2 here. If there's anyone out there on an earlier realease, could they run a little test just to prove that the call is Case Sensitive and report back on the results? If the call was always case sensitive, then as a few folks have pointed out, Jefferson might have much bigger problems than learning all the "Cool" new stuff in V5R3...... Like figuring out why his Source and Objects are out of Synch. Mike PS: It would also prove that I'm not going senile.![]()
I don't doubt what you're seeing, but I sure don't understand it... The RPG/400 manual in the V5R3 Information Center is based on V3R0M5 (June 1994) and there it specifically mentions that lowercase literals are not uppercased. I also happen to have a V3R1 system available to me, and it certainly doesn't do uppercasing of literals for OPM or ILE. Very strange.
The code shown below worked fine for line 1 in uppercase, failed on line 2 in lower case.
Code