CL Program to vary off Network Servers (*NWS)

pts.
Tags:
CLP
Hello Can someone please help me with the following. We have an iSeries with an xSeries attached. The issue is that when we perform a scheduled IPL using the GO POWER menu, the xSeries is not being ended correctly prior to all other subsystems ending and then performing the IPL. What I am looking for is a CL program that will vary off the *NWS. As I have limited knowledge of how cl is written, I was hoping that someone else has done this and is willing to share. Thanks in advance. Malcolm

Answer Wiki

Thanks. We'll let you know when a new response is added.

We no longer have a integrated server, but I think you just need a simple cl like this:

pgm
VRYCFG CFGOBJ(XSERIES) CFGTYPE(*NWS) STATUS(*OFF)
endpgm

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • KevinBattreall
    We use this command. VRYCFG CFGOBJ(GMRCIX01) CFGTYPE(*NWS) STATUS(*OFF) FRCVRYOFF(*YES)
    0 pointsBadges:
    report
  • TomLiotta
    Note that the command is insufficient by itself. After the command runs, execution of the program should not continue until the status actually changes to *OFF. The program should be expanded something like:
    pgm
                 DCL        VAR(&NWSSTS) TYPE(*DEC) LEN(5)
                 VRYCFG CFGOBJ(XSERIES) CFGTYPE(*NWS) STATUS(*OFF)
                 RTVCFGSTS  CFGD(XSERIES) CFGTYPE(*NWS) STSCDE(&NWSSTS)
                 DOWHILE  ( &NWSSTS *GT 0 )
                    DLYJOB  30
                    RTVCFGSTS  CFGD(XSERIES) CFGTYPE(*NWS) STSCDE(&NWSSTS)
                 ENDDO
    endpgm
    Possibly a count of how many times the delay loop is taken should be included. After three times, an error might be signaled. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following