IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
 View Only
  • 1.  QSH on IBM i: Running scripts fail due to the curly braces?

    Posted Mon September 30, 2024 09:23 AM

    I am trying to run a shell script in QSH of IBM i. It seems there is a problem in the system translating the variables due to the curly braces used in the script. Has anybody encountered this and know any work-around?

    > ./setWebServiceProperties.sh -server WSERVICE1 -service myservice -userid *AUTHENTICATED       
      QzshInitVarChars: 001-0072 CCSID 420 is not supported.  qsh is initialized for CCSID 37.       
      qsh: 001-0072 CCSID 420 is not supported.  qsh is initialized for CCSID 37.                    
      QzshInitVarChars: 001-0072 CCSID 420 is not supported.  qsh is initialized for CCSID 37.       
      qsh: 001-0072 CCSID 420 is not supported.  qsh is initialized for CCSID 37.                    
      QzshInitVarChars: 001-0072 CCSID 420 is not supported.  qsh is initialized for CCSID 37.       
      qsh: 001-0072 CCSID 420 is not supported.  qsh is initialized for CCSID 37.                    
      ./setWebServiceProperties.sh: 001-0014 Command $آJAVA_HOMEآ/bin/java not found.                
      $                                                                                              



    ------------------------------
    Del Abalos
    pasay city AL
    63-906-246-7417
    ------------------------------



  • 2.  RE: QSH on IBM i: Running scripts fail due to the curly braces?

    Posted Mon September 30, 2024 06:44 PM

    Hi,

    What do i remember from the past is that Qshell supports only code page 37 so it can be just informational message. However i need to check if it is still true. 

    Regarding $آJAVA_HOMEآ/bin/java not found - it seems to be a path issue to me. Can you please this( echo $PATH) and provide the snap? Do you also use environment variable on the system? If yes, what is the environment variable set on your system ? 



    ------------------------------
    Rohit Chauhan
    Senior Technical Specialist
    Norway
    ------------------------------



  • 3.  RE: QSH on IBM i: Running scripts fail due to the curly braces?

    Posted Mon September 30, 2024 09:19 PM
    Edited by Satid S Mon September 30, 2024 09:20 PM

    Dear Del

    There is an IBM Technote indicating that the message "001-0072 CCSID 420 is not supported.  qsh is initialized for CCSID 37. " is normal for a Qshell session and can be ignored.   But I see that the last message that " ./setWebServiceProperties.sh: 001-0014 Command $آJAVA_HOMEآ/bin/java not found." should not be ignored.    Have you set your system environment variable JAVA_HOME properly?  Use WRKENVVAR  LEVEL(*SYS - and *JOB) command to check it.   It should point to  '/QOpenSys/QIBM/ProdData/JavaVM/jdkNN/XXbit'   where NN = JDK level you need to use and XX = 32 or 64 bit.  More information on JAVA-HOME is here:  How to determine what Java Development Kits (JDKs) are installed and use them in your environment? at https://www.ibm.com/support/pages/how-determine-what-java-development-kits-jdks-are-installed-and-use-them-your-environment       



    ------------------------------
    Satid S
    ------------------------------