[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

2495.0. "Running a UDP in BATCH" by UNYEM::KOROL () Tue Mar 30 1993 15:28

    I have created a UDP and would like to run it in batch.  I can create
    the batch procedure but I'm not sure what the ALL-IN-1 command line
    should look like?
    
    My script that runs the UDP looks like this:
    
    .FX DO OA$LIB:OAINI.SCP
    .FUNCTION GET OA$_MO_USER_DEFINED_PROC = NIMO$19:[CORP_NEWS.A1.UPD]F17.UDP
    .FUNCTION EXIT
    
    I have run the script that calls the UDP while testing I used:
    
    ALLIN1/DEFER/SCRIPT=NIMO$19:[KOROLJ.MENU]TEST.SCP 
    
    Is this the same way I would enter in my BATCH.COM file?  I cannot file
    what I'm looking for in my documentation.
    
    Any hints?
    
    Joanne
T.RTitleUserPersonal
Name
DateLines
2495.1ALL-IN-1/NOINIT AIMTEC::BUTLER_TWed Mar 31 1993 15:4811
    Joanne,
    
    Normally, you would enter ALL-IN-1 with /noinit then use the
    script function.
    
    For more info look at notes 34 and 1954 in this conference and
    note 1688 in the V24 conference.
    
    HTH,
    
    Tim
2495.2Still need more help!UNYEM::KOROLThu Apr 01 1993 21:4637
    I guess I'm still having problems, this is what I tryed:
    
    Created a file TEST.COM and entered the one line that didn't work,
    maybe I missed something:
    
    $ALLIN1/NOINIT/REENTER OA$INI_INIT DO
    NIMO$69:[CORP_NEWS.A1.UDP]CORP_NEWS.UDP 
    
    and I get:
    
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "EM"
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "EM"
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "EM"
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "EM"
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "EM"
    Enter CMD:
    
    Either I missed something that you said on the phone, I'm sure.
    
    I can do the following interactively that works:
    
    $ALLIN1/DEFER/SCRIPT=NIMO$69:[CORP_NEWS.A1.UDP]CORP_NEWS.UDP
    
    I have read the files you mentioned, but they didn't help me.
    
    I have given CORP_NEWS all the of ALL-IN-1 privileges:
    
    
     ALL-IN-1 privileges:   DCL  SUP  ERR  CMD  SRC  APP  CPHD  LOG
                             Y    Y    Y    Y    Y    Y    Y     N
    
    But I still cannot seem to get the anything to work unless I enter the
    commands myself (and shown above).
    
    Any hints?
    
    
2495.3seperate linesAIMTEC::BUTLER_TThu Apr 01 1993 22:3116
    Hello:
    
    lets start by changing the com file to multiple lines:
    
    
        $ALLIN1/NOINIT/REENTER
         OA$INI_INIT 
         DO NIMO$69:[CORP_NEWS.A1.UDP]CORP_NEWS.UDP
                                                ***
    
    
    	I think you want this to be corp_news.scp.
    
    HTH,
    
    Tim
2495.4Use `SCRIPT', not `DO'IOSG::MARCHANTI'd sink therefore I swamFri Apr 02 1993 01:198
    UDPs are `SCRIPT' scripts, not `DO' scripts.  So, try:

$ALLIN1/NOINIT/REENTER
OA$INI_INIT 
SCRIPT NIMO$69:[CORP_NEWS.A1.UDP]CORP_NEWS.UDP
    
    Cheers,
        Paul.
2495.5DO-AH-DOAIMTEC::BUTLER_TFri Apr 02 1993 15:3410
    Paul,
    
    Thank You! I talked with Joanne before .2 and at that time she was
    going to make it a do script.
    
    The reason for a UDP to start with was one of what was known and 
    worked before.
    
    
    Tim
2495.6What am I doing wrong?UNYEM::KOROLFri Apr 02 1993 15:4886
    Well - here is what I tried and what happened (who said it was easy?).
    
    I logged into CORP_NEWS account, make the account NOCAPTIVE to get to
    VMS and run the following procedure:
    
    $ALLIN1/NOINIT/REENTER
    OA$INI_INIT
    SCRIPT NIMO$69:[CORP_NEWS.A1.UDP]CORP_NEWS.UDP
    $EXIT
    
    Here is what I got:
    
    Enter CMD:EM
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "EM"
    Enter CMD:RN
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "RN"
    Enter CMD:mFT
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "MFT"
    Enter CMD:[CORP_NEWS]
    %OA-E-FNI, Function "[" not implemented in this version
    Enter CMD:EM
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "EM"
    Enter CMD:RN
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "RN"
    Enter CMD:mFT
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "MFT"
    Enter CMD:[CORP_NEWS]
    %OA-E-FNI, Function "[" not implemented in this version
    Enter CMD:EM
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "EM"
    Enter CMD:RN
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "RN"
    Enter CMD:mFT
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "MFT"
    Enter CMD:[CORP_NEWS]
    %OA-E-FNI, Function "[" not implemented in this version
    Enter CMD:EM
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "EM"
    Enter CMD:RN
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "RN"
    Enter CMD:mFT
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "MFT"
    Enter CMD:[CORP_NEWS]
    %OA-E-FNI, Function "[" not implemented in this version
    Enter CMD:EM
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "EM"
    Enter CMD:RN
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "RN"
    Enter CMD:mFT
    %OA-E-OAFE, Unknown, ambiguous, or invalid function "MFT"
    Enter CMD:[CORP_NEWS]
    %OA-E-FNI, Function "[" not implemented in this version
    Enter CMD:EXIT
    
            CORP_NEWS finished using ALL-IN-1 at 02-Apr-1993 08:35am
     
    So, it looks to me, it entered ALL-IN-1 with the NOINIT ok.  It saw the
    UDP that the command procedure pointed to, but once it saw the UDP
    it didn't know any of the ALL-IN-1 commands - EXCEPT for EXIT.
    
    This is just a standard UDP that I created from the CORP_NEWS ALL-IN-1
    account, here is what this looks like:
    
        EM{RETURN}RN{RETURN}{PC EXIT}FT{RETURN}[CORP_NEWS]{RETURN}
    EM{RETURN}RN{RETURN}{PC EXIT}FT{RETURN}[CORP_NEWS]{RETURN}
    EM{RETURN}RN{RETURN}{PC EXIT}FT{RETURN}[CORP_NEWS]{RETURN}
    EM{RETURN}RN{RETURN}{PC EXIT}FT{RETURN}[CORP_NEWS]{RETURN}
    EM{RETURN}RN{RETURN}{PC EXIT}FT{RETURN}[CORP_NEWS]{RETURN}EXIT{RETURN}
    
    What is does when I run it is reads the new mail, exits screen (so I
    didn't have to press return for as many times depending on the length
    of the new mail message.  After it exits screen, it files the text of
    the message into the [CORP_NEWS] shared folder.  It repeats a few times
    and then exits ALL-IN-1.  
    
    I can run it from the CORP_NEWS ALL-IN-1 account fine, I can run it
    with the ALLIN1/DEFER/SCRIPT=NIMO$69:[CORP_NEWS.A1.UDP]CORP_NEWS.UDP
    
    I still cannot run it from a command procedure.  What am I doing wrong?
    
    Any more hints?
    
    Joanne
    
    P.S.	I appreciate all the help!  
    
2495.7Forms mode?IOSG::MAURICENight rolls in, my dark companionFri Apr 02 1993 16:1911
    Hi,
    
    It looks like you need to get into forms mode, so try adding:
    
    FORM MAIN{RETURN}
    
    at the beginning of the UDP
    
    Cheers
    
    Stuart
2495.8It's worked - and Thanks SOOOO Much!!!UNYEM::KOROLFri Apr 02 1993 16:3111
    Stuart, Tim and Paul:
    
    Thank you for all your help.  I added the FORM MAIN{RETURN} to the
    beginning of my UDP and it worked!
    
    Hope you all are listening next time I have a problem.
    
    Thanks again!!!!!!!!!!!!!!!!!1
    
    
    Joanne Korol @SYO