cancel
Showing results for 
Search instead for 
Did you mean: 

How to concatenate SAPRouterString + SAP GW Service?

andreschgz95
Participant
0 Kudos

Hi guys,

I'm following the steps of the SAP note 353597 to register a RFC server program at operating system level in OS/400. However, one of the steps says that is needed to execute the followign command in case of OS/400:

  • SBMJOB CMD(CALL PGM(<PROGRAM>) PARM('-a' '<PID>' '-g' '<HOST>' '-x' '<SERVICE>')) ALWMLTTHD(*YES)

And just after that, there is an explanation about the parameters that we should provide to that command:

  • The external RFC server program <PROGRAM> (file name of the external RFC server program - possibly specifying the path, if the run directory is not the installation directory) now registers with the program ID <PID> on the gateway host <HOST> on the port (gateway service) <SERVICE>. The value <HOST> may have to contain a router string to the gateway host.

So, in the next image I'll remark the values I'm taking for each parameter.

I would like to know if you agree with that values and specially if the parameter service has to contain the SAP Router String and in case of yes, how can I concatenate the Router String to the Service name?

The following are three of my attemps which didn't work:

  1. SBMJOB CMD(CALL PGM(BEDBRO01) PARM('-a' 'BEDBRO01' '-g' 'FQDN' '-x' 'sapgw30')) ALWMLTTHD(*YES)
  2. SBMJOB CMD(CALL PGM(BEDBRO01) PARM('-a' 'BEDBRO01' '-g' 'FQDN' '-x' '/H/xxx.yyy.zzz.fff/S/sapgw30')) ALWMLTTHD(*YES)
  3. SBMJOB CMD(CALL PGM(BEDBRO01) PARM('-a' 'BEDBRO01' '-g' 'FQDN' '-x' '/H/xxx.yyy.zzz.fff/H/sapgw30')) ALWMLTTHD(*YES)

I would appreciate a lot your help.

Best regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

joachim_kern
Explorer
0 Kudos

Hi Andrés,

did you check the QPRINT output of the BEDBRO01 job? It should contain more information about the reason why the registration failed.

E.g.

SBMJOB CMD(CALL PGM(BEDBRO01) PARM(...)

results to the following Information:

Job 699206/QSECOFR/QDFTJOBD submitted to job queue QBATCH in library QGPL.

Call then

WRKJOB 699206/QSECOFR/QDFTJOBD

Choose option 4

and display the QPRINT file.

Best regards

Joachim