[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

1908.0. "ALL-IN-1 truncates logical name definition??" by TAVIS::CORDOVA () Mon Dec 07 1992 00:31

HELLO,

I have the following problem with ALL-IN-1 V2.4 and logical names.
The problem is this : 
I am trying to define a logical name with the GET OA$DCL function. 

Now this works fine when the name is short but once it gets over a certain 
length (something like 100 chars) the name gets cut and the rest is considered 
by ALL-IN-1 to be a new DCL command.

Now the length is less than 255 chars and the same command in regular 
(not inside ALL-IN-1 sub-process) works fine. I also noticed that if
you define the logical with PARENTHESES the limitation is valid.

Can anybody please explain what is going on ?

THANKS GIL


T.RTitleUserPersonal
Name
DateLines
1908.1Try the ALL-IN-1 LOGICAL function?SANFAN::LESLIE_DAGreetings & SolutionsMon Dec 07 1992 01:207
    Have you tried using the ALL-IN-1 function called LOGICAL to define a
    process logical?
    
    There is probably a limit of what can be passed to DCL with oa$DCL and
    I *thought* the limit was 255.
    
Dan

1908.2A possibilityIOSG::SHOVEDave Shove -- REO2-G/M6Mon Dec 07 1992 15:4917
    Get OA$DCL (and any other method of writing to the subprocess) chops
    the string into "lines", with a - at the end of each except the last.
    So presumably this is why the logical gets messed up.
    
    Looking at the code, I see that there is special provision for handling
    quoted strings (as splitting such a string in this way wouldn't work).
    If the line would end in the middle of a quoted string, ALL-IN-1 chops
    it into two strings separated by "+" - so the subprocess sees:
    
    .... "this is a jolly"+-
    " long string"
    
    Whether this would help in your case (putting the thing you want to
    define as your logical in quotes) I'm not sure, but it might be worth
    trying.
    
    D.
1908.3KludgeBRUMMY::MARTIN::BELLMartin Bell, TCC, Birmingham UKTue Dec 08 1992 08:5615
... or if you _have_ to do it via OA$DCL, try splitting the logical
into separate DCL symbols, eg.


get oa$dcl='a="the first bit of the logical"'
get oa$dcl='b="the second bit of the logical"'
get oa$dcl='c="the third bit of the logical"'

then do a

get oa$dcl="define thingy ""''a'''b'''c'"""

The quotes may seem a little confusing, but it should work!

mb