Trying to append by shell script

Discussion in 'Programming/Scripts' started by darling, Mar 17, 2014.

  1. darling

    darling New Member

    Hi,

    this script name is fr.sh

    Code:
    
    echo 'dis nl('SUN') names '|runmqsc $1
    
    
    from below code i am getting output

    Code:
    echo 'dis nl('SUN') names '|runmqsc $1
    
    OUTPUT

    Code:
     dis nl(SUN) names
    AMQ8550: Display namelist details.
       NAMELIST(SUN)
       NAMES(CLUS1
            ,CLUS2
            ,CLUS3)
    
    
    Now below thing is i am trying to do

    when i run my script like below

    Code:
    ./fr.sh QM MQ123 CLUS4
    
    it should do like below

    Code:
    alter NAMELIST(SUN) +
          DESCR(MQ123) +
          NAMES(CLUS1+
               ,CLUS2+
               ,CLUS3+
               ,CLUS4)
    
    
    can some one suggest me to achive above one

    here

    Code:
    MQ123 is $2
    CLUS4 is $4
    
     
  2. sjau

    sjau Local Meanie Moderator

    I fail to see what you're trying to do.
     

Share This Page