[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

114.0. "Using /NOCUSTOM in Batch Jobs" by GIDDAY::SETHI (Man from Downunder) Thu Feb 27 1992 04:44

    G'day Digits,
    
    I find one major problems with debugging command procedures submitted
    in batch mode For example Housekeeping tasks or Create User option.
    
    If any of these command procedures are customized (hopefully using CM,
    better be or else !!!) it is impossible to make use of the uncustomized
    elements.  All customisations are placed in the directory
    OA$SITE_whatever which is correct and proper.  Whenever a customer has
    a problem to prove it's their customisation it's suggested that they
    invoke ALL-IN-1 with the /NOCUSTOMISE command qualifier.  This is fine
    for INTERACTIVE tasks BUT for BATCH jobs ALL-IN-1 looks into
    OA$SITE_whatever always.
    
    Is it at all possible to take the /NOCUSTOMISE at the code level to
    mean that the batch jobs also look at the uncustomized elements.  This 
    would mean that the customers do not have to copy in the uncustomized 
    element into CM then Move it to the live area etc. and then test it and put
    everything back to what it was like.  It's a rather long winded way of
    doing things customer hate this.
    
    Secondly is it also possible at sometime in the future to include an
    option that would allow you to submit a batch job and do a "$set
    verify".  At present if you have to debug a command procedure
    customized/uncustomize element you have to select it in CM then comment
    out $ x=f$verify (0) then do a "$set verify" in the command procedure.
    It just seems to be alot of hardwork to me.  I am sure it would involve
    alot of work but it could save us alot of time and give the customer
    some insentive to do some of the hardwork first.
    
    The debugging features should be enhanced to provide the ALL-IN-1
    programmer with better tools for debugging in batch mode.
    
    This is not a problem but it's just very hardwork and boring to say the
    least. Or is their a better way please let me know.
    
    Looking forward to your comments and thanks.
    
    
    Sunil
T.RTitleUserPersonal
Name
DateLines
114.1A suggestionSCOTTC::MARSHALLPearl-white, but slightly shop-soiledThu Feb 27 1992 10:0811
Hi,

I don't know how "supported" or advisable this is, but I always find it easiest
inspect and/or debug housekeeping jobs and other batch jobs by running them
interactively rather than in batch mode.
Obviously for something like Create User you need to set up a profile record
first; an easy way to do this would be to do the Create User as normal, but
with the batch queue paused.  Then look at the queue to work out the job
parameters, and away you go...

Scott
114.2/NOCUSTOM in batch jobsIOSG::SHOVEDave Shove -- REO-D/3CThu Feb 27 1992 14:328
An easy way to achieve this might be to edit the LOGIN.COM of the VMS account
(ALLIN1 or whatever) where the batch jobs will run. Just include a line like:

$ALLIN1:==ALLIN1/NOCUSTOM

I haven't tried this, but it ought to work.

D.
114.3To widen the problem a little ...AIMTEC::PORTER_TTerry Porter, ALL-IN-1 Support, Atlanta CSCThu Feb 27 1992 15:1330
I've always found this annoying as well, but in a slightly different context.

If you are trying to debug a problem on a customer's system that involves a 
batch job (typically a housekeeping procedure) then in order to turn tracing
on you have to 'customize' the appropriate script/command file and make that
customization live. That alone is not a risk, just a pain.

Once you have found (or think you have found) the cause of the problem then
to test a solution you have to modify the appropriate script/command file and
then make it live!! This is not only a pain but carries a risk (even if only
a minor one) of breaking the customer's production system.

Unfortunately this type of work is often done on slow and noisy dial-in
lines and the chances of running a housekeeping procedure interactivly to
completion without getting aborted by line noise can often be very low.

It would be nice to be able to pass some form of parameter to the housekeeping
procedure to

 - Run custom/nocustom
 - Pick up the submittors trace settings and use them
 - Pick up objects in the development directories

While there may be some ways to achieve some of this, there are heavy 
restrictions on what you can do on a customer's production system which often
rule out some of the more creative approaches.

Well thats my 2 cents worth,

Terry
114.4Debugging symbols?IOSG::PYEGraham - ALL-IN-1 Sorcerer's ApprenticeThu Feb 27 1992 22:4314
    I seem to recall that some of the HK jobs actually turned on verify
    based on the setting of some symbol or logical. Assuming I haven't
    imagined this, a simple chnage to the MANGER's LOGIN.COM could turn
    this on.
    
    Assuming I have imagined it, then it could be customised in, and left
    on the system afterwards with no (or little) risk.
    
    On /NOCUSTOM, I've always understood that it only removed the SITE form
    libraries and CM TXL from the search list. Aren't the OA$LIB etc. SITE
    directories still searched because OA$LIB is defined as a system
    logical search list?
    
    Graham
114.5OALIB is split up alsoCESARE::EIJSAll in 1 PieceFri Feb 28 1992 08:3613
    
    /NOCUSTOM will also split up OALIB (which refers to OA$LIB, which
    refers to...). Only the Base logicals OA$LIB_SHARE: and
    OA$LIB_<language>: are defines. You can see this in the
    OA$FILE_SEARCH_ORDER after starting ALL-IN-1 with /NOCUSTOM:
    
    	$ ALLIN1/NOCUSTOM/......
    	<GET OA$FILE_SEARCH_ORDER
    	EXIT
    
    Ciao,
    
    	Simon
114.6Explicit references will always give a prob.FULMER::LAAHSTwo Cute Celts are better than oneFri Feb 28 1992 11:3114
    When /NOCUSTOM is used all that we can do is to bypass any IMPLICIT
    references to elements (eg DO X instead of DO <ddcu:>X). This also
    means that anything called outside of ALL-IN-1 will be called
    explicitly.
    
    Therefore anything that is called explicitly will still look at the
    explicit reference. In a lot of cases command procedures are referenced
    explicitly using OA$LIB - especially when they are called outside of
    ALL-IN-1.
    
    What I would do therefore for debugging practices is to redefine OA$LIB
    so that it does not contain the OA$SITE logicals.
    
    Kevin
114.7And in the product too?IOSG::PYEGraham - ALL-IN-1 Sorcerer&#039;s ApprenticeFri Feb 28 1992 14:097
    I suspect there may be quite a lot of explicit "@OA@LIB:mumble.COM, DO
    OA$LIB:mumble.SCP references in the base product too.
    
    When defining an alternate OA$LIB, unless it's /SYSTEM, make sure it's
    defined /EXEC or ALL-IN-1 won't turn on its privs.
    
    Graham