Download acqu.notice

Back to the list

Display this manual page in
$$$$ ACQU     NOTICE  GOUNAND   14/01/30    21:15:01     7922           
                                             DATE     14/01/30
                                             
    ACQUERIR operator                          See also : REST
    -----------------                                     LIRE

    ----------------------
    |  1st possibility   |
    ----------------------

    ACQUERIR   OBJET1*TYP1  (N1) ( OBJET2*TYP2 ....) ;

                                 OBJETi=ENTIER,FLOTTANT,MOT
                                        LISTENTI,LISTREEL


    Description :
    ____________

    Inserted into a CASTEM 2000 data set, the ACQUERIR operator
 is used to acquire objects (OBJET1, OBJET2...) from a N2 logical
 unit file defined by:
 
                  OPTION ACQUERIR  N2 ;

    Note 1 :
    _________

   The possible types of objects to be acquired are as follows : 

        - ENTIER
        - FLOTTANT
        - MOT
        - LISTENTI
        - LISTREEL

    You may omit the type of object to be acquired. In this case,
 do not mention the * .

    Note 2 :
    _________

    For LISTENTI or LISTREEL type objects, you must
 provide the N1 (ENTIER type) number of values to be read.

    Note 3 :
    _________

    The file must be composed of 256-character records.
    The MOT type objects have at the latest 72 characters.

     Example :
     _________

     Considering the following reading file :

     1 ' is smaller than ' 2
     2  times 3 equals 6
     12  34  56 78       90

 the following reading sequence :

        ACQUERIR   I*ENTIER  MM*MOT J*FLOTTANT;
        ACQUERIR   K*ENTIER ;
        ACQUERIR   LL*LISTENTI  5 ;

 leads to :    I =1
               MM= is smaller than
               J =2
               K =2
               LL= 12 34 56 78 90

    ----------------------
    |  2nd  possibility  |
    ----------------------

    MOT1 = 'ACQU' 'BRUT' ;

    Purpose :
    _________

    The ACQUERIR operator reads a record on a logical unit previously
    defined thanks to one of the following directive : 

                  'OPTION' 'ACQUERIR'  N2 ;
            or    'OPTION' 'ACQUERIR'  MOT2 ;
    
    where : 
    N2   : ENTIER type object, logical unit number
    MOT2 : MOT type object, filename

    The result of the operator is a MOT type object, MOT1 (512 
    characters max).


 

© Cast3M 2003 - All rights reserved.
Disclaimer