cancel
Showing results for 
Search instead for 
Did you mean: 

AS-400 Scripts to add multiple TR and Import in sequence

Amarnath
Participant
0 Kudos

Hello Experts,

We have a requirements to add multiple TR's and import them in a sequence. We tried preparing scripts based on  

We tried executing this on AS400 using Call QP2TERM from I series emulator. We got an error

"Error in TPSETTINGS: transdir not set.

tp returncode summary:

TOOLS: Highest return code of single steps was: 0

ERRORS: Highest tp internal error was: 0208

tp finished with return code: 208"

We have also tried executing from STRQSH, also trans directory has full permissions from which we executed scripts.

Is there any procedure I need to follow to execute in AS400?

Or is there any other procedure for this?

Please suggest.

Best Regards,

Amarnath

Accepted Solutions (0)

Answers (1)

Answers (1)

Sriram2009
Active Contributor
0 Kudos

Hi Amarnath.

Could you refer the SCN link

BR

SS

Former Member
0 Kudos

Hi Amarnath.

Run the tp command as <SID>ADM or OFR approprirate to your release/kernel.

Before,

Step 1    cd /usr/sap/trans/bin

For the tp import don't forget  the pf=/usr/sap/trans/bin/TP_DOMAIN_<SID>.PFL at end of the command,   where SID is the domain controller system. That will be  the reason for

Error in TPSETTINGS: transdir not set.

If you have the syntax correct, check you can display this file, to make sure is not an authorisation issue;

regards, Michael

Amarnath
Participant
0 Kudos

Hi Michal,

I ran the scripts with SIDADM and here my domain controller is Dev box. My requirement is to add in Dev box itself.

Could you please help me to know where to run the scripts? Do you want me to run them in qp2term or qsh?

Please suggest, when I execute in qp2tem It is ending with some error displaying "" NOT EXPECTED IN LINE 10" . But tried with different options changing code but failed.

Please suggest.

Best Regards,

Amarnath

Amarnath
Participant
0 Kudos

Hello Sairam,

I am using the same scn link to execute the scripts. I got it from Ashotosh. Is ther any other suggestion that could help me.

Best Regards

Amarnath

Amarnath
Participant
0 Kudos

Hello Michael,

# Start of Script file

#! This script will add transports to buffer one by one sequentially.

# The list of transport should be given in transport_list.txt file where

# each transport should be in new line.

###

TPLIST=/usr/sap/trans/TrnScript/transport_list.txt

TPSTATUS=${TPLIST}.log

for i in `cat ${TPLIST}`

do

/usr/sap/DT9/SYS/exe/uc/linuxx86_64/tp addtobuffer $i DT9 u1 pf=/usr/sap/trans/bin/TP_DOMAIN_DT9.PFL

      RC=$?

    print "`date`...Transport ${i} Status RC=${RC}" >> ${TPSTATUS}

done


To be more clear I am facing "NOT EXPECTED" error in line 10 i.e.,

for i in `cat ${TPLIST}`

do


So there anything I could give a try?


Please suggest,


Best Regards,

Amarnath

Amarnath
Participant
0 Kudos

Hello,

Can someone provide me a solution for this?

Best Regards,

Amarnath