We have two development Iseries systems. When I run QSH on both the systems i can see two major differences this creating problem in running same program on these systems.
1. When i run command QSH, i am getting '$' prompt.
2. I can access environment variable like $XXXX in the shell commands.
1. When i run command QSH, I am getting '¢' prompt.
2. I am unable to use '$' symbol to access the environment variables, instead if I use '¢' system i could able to access them without problem (example ¢XXXX).
I have written CL program in first system, which is not working on second system even though both are having same OS version. After investigation I understood that i can not use '$' to access environment variable on the second system.
Can i change something on second system to use '$' instead of '¢' symbol in order access environment variables in shell commands? This helps me to run same CL program contains shell commands on both these systems.
Please help me. Thanks in advance.
This topic has been locked.
3 replies Latest Post - 2012-04-19T09:20:36Z by svmanoj
Pinned topic QSH environment variable access problem
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-04-19T09:20:36Z at 2012-04-19T09:20:36Z by svmanoj
barbara_morris 120000DX5W382 PostsACCEPTED ANSWER
Re: QSH environment variable access problem2012-04-18T15:22:46Z in response to svmanojHi Manoj, this is the RPG forum. You might get a better response if you post questions about QSH in the more general IBM i forum http://www.ibm.com/developerworks/forums/forum.jspa?forumID=2675.
scott_klement 2700007QFX242 PostsACCEPTED ANSWER
Re: QSH environment variable access problem2012-04-18T21:04:00Z in response to svmanojHi Manoj,
Unix systems normally use $ as a prompt, and they always use $ to identify variables. They NEVER use ¢, it's not even a possibility to change them to work that way.
So, I'm thinking that this isn't a problem with "QShell configured for ¢", but rather, the problem is that QShell is sending $ as normal, but it looks like a ¢ on your display. That implies that you have a misconfiguration somewhere, most likely with the CCSID settings somewhere.
I would suggest that you make sure your system and job CCSID settings are correct. I would also make sure that you've followed the "National Language Support Considerations" that IBM suggests in the QShell manual. Here's a link to that page of the manual:
svmanoj 27000598VJ2 PostsACCEPTED ANSWER
Re: QSH environment variable access problem2012-04-19T09:20:36Z in response to scott_klementThank you very much scott.
Yes, it is to do with CCSID. My emulator has CCSID 037 and my iseries CCSID is 285. This created problem, i changed my emulator CCSID to 285 then it worked perfectly.