[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

914.0. "ID on TEXT_FILE, symbol?" by UTRTSC::BOSMAN (We're just sugar mice in the rain) Tue Jun 23 1992 14:02

    Hi,

    I have a small question regarding the ID used on the TEXT_FILE
    function. In some script I saw:

       GET #DOC_ERR = 1
       TEXT_FILE OPEN /WRITE #DOC_ERR "FILE.TMP"

    Cause TEXT_FILE WRITE 1 and even TEXT_FILE WRITE '1' won't work I
    assume that the ID is literally #DOC_ERR. So, what is the meaning of
    the GET #DOC_ERR ? The APR doesn't refer to a symbol to be used
    specifying the ID.
    
    Thanks for any clarification,
    Sjaak.
T.RTitleUserPersonal
Name
DateLines
914.1Check the script in question.HOTAIR::MADDOXPoliticians say the darnedest thingsTue Jun 23 1992 20:3018
Sjaak,

Does the script where you saw this syntax really work?  I've never seen a
symbol used as an identifier unless the symbol contains the identifier and
is decoded using the "GET OA$FUNCTION = " syntax to resolve it.  I.e.:

get #FILE_NAME = "SOMETHING.DAT"
get #FILE = "FILE1"
get OA$FUNCTION = 'text_file open ' #FILE ' #FILE_NAME /write'

The syntax which has always worked for me is:

text_file open FILE1 #FILE_NAME /write

There may be some explanation for using a symbol as an identifier, but I 
haven't seen it.

Joe
914.2PointersUTRTSC::BOSMANWe're just sugar mice in the rainWed Jun 24 1992 11:1816
    Joe,
    
    Take a look at either:
    - V2.4: SM_ADD_PARTITION.SCP & MUA_PAT_ARCHIVE.SCP in OA$LIB.
    - V3.0: SM_MAS_ARCHIVE(_V2).SCP & SM_PAT_ARCHIVE(_V2).SCP in OA$LIB.
    
    It seems to work, so I think #DOC_ERR is literaly the ID.
    
�   There may be some explanation for using a symbol as an identifier, but I 
�   haven't seen it.
    
    That's why I asked this question, _maybe_ there is a deeper meaning.
    
    
    Regards,
    Sjaak.
914.3not used as a symbolSHALOT::DUNCANJoe - CIS/EIC Doc. Mgmt. Solution Set ConsultantWed Jun 24 1992 17:428
    The ID is used as an internal tag to identify which file-open you will
    be using for the various TEXT_FILE functions.  It isn't evaluated as a
    symbol, so it doesn't necessarily need to be the name of a temporary
    symbol.  Therefore, assigning any value to #DOC_ERR (in your example)
    is irrelevant -- ALL-IN-1 never evaluates the symbol.  The main
    restriction I see is that it can't contain any embedded white space.

    Joe Duncan @ OPA
914.4A joke?UTRTSC::BOSMANWe're just sugar mice in the rainThu Jun 25 1992 08:1616
    Joe,
    
    
�   symbol.  Therefore, assigning any value to #DOC_ERR (in your example)
�   is irrelevant -- ALL-IN-1 never evaluates the symbol.  The main

    May I remind you that this is standard ALL-IN-1 stuff? And because
    there are other undocumented features I thought this may be another
    one.
    
    From your reply I conclude that #DOC_ERR is taken literally and maybe a
    programmers joke to confuse us :-)
    
    
    Regards,
    Sjaak.