Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change writer on AS400 remote system by program ?

Status
Not open for further replies.

francoisf

Programmer
Feb 11, 2004
30
0
0
FR
Hi !
I've to change a writer on a remote system AS400 from another AS400.

I can do it using TELNET command and then using this command : CHGWTR WTR(PRT1) FORMTYPE(*SAME *NOMSG)
But i would like to do it automatically by program.

I try use this command : AREXEC CMD('CHGWTR WTR(PRT1) FORMTYPE(*SAME *NOMSG)') RMTLOCNAME(RemoteSysName...
but i got a message telling my to check my controler and my connection.
I don't understand why i can connect by TELNET command and yet the AREXEC command doesn't work ...

I'm a beginner and i don't know if a solution exists for my problem.

Thanks if you can help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top