Hi,
If you look in the "Job Status" view (in the Remote Systems" (i.e. default) perspective) can you see any batch jobs that might be created everytime the connection starts? If so, I would guess your initial command is running in batch. I can't imagine why it would (I have everything running interactively and all "submit to batch" tickboxes are unticked) but it is something that might explain this behaviour.
-Paul.
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Frank Broome
Sent: 19 November 2014 10:12
To: wdsci-l@xxxxxxxxxxxx
Subject: Re: [WDSCI-L] Setting library list using Initial command
I know that the initial command is only running when connection is established.
As I said, running a command like e.g. CHGLIBL works fine, running a CALL to a program that changes the library list does NOT work.
After running the CALL to the program the job that has executed it ends, whilst if I run command CHGLIBL the job stays and the lib list is changed accordingly.
I have now been able to catch the joblog and see what happens and when I run the call to the program the job ends with:
"Tried to refer to an object that no longer exists"
From program . . . . . . . . . : QZRCSRVS
From library . . . . . . . . : QSYS
From module . . . . . . . . : QZRCSRVS
From procedure . . . . . . . : ProcessExitPt
From statement . . . . . . . : 14
To program . . . . . . . . . . : QZRCSRVS
To library . . . . . . . . . : QSYS
To module . . . . . . . . . : QZRCSRVS
To procedure . . . . . . . . : ProcessExitPt
To statement . . . . . . . . : 14
I have made sure that I am NOT doing any RCLACTGRP or RCLRSC in my program, so I am not sure which object it's trying to refer to??
Any clues would be appreciated!
Frank Broome | Sr. Software Developer/Architect PEI-Genesis
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.
---------------------------------------------------------------------------------------
This email has been scanned for email related threats and delivered safely by Mimecast.
For more information please visit
http://www.mimecast.com
---------------------------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.