Operator CHAI DATE 97/04/23 Opérateur CHAINE See also :TEXT ---------------- CHAINE ('FORMAT' format ) OBJET1(?N) ( OBJET2 .....) ; OBJETi=MOT,ENTIER,FLOTTANT Description : _____________ The CHAINE operator enables the user to create a word that does not exceed 72 characters. Contents : __________ OBJETi : MOT, ENTIER or FLOTTANT type objects FORMAT : key word followed by a string , the FORTRAN format for following FLOTTANT .The default format is '(1P,E12.5)'. Note : ________ The string is created by the concatenation of the strings of the OBJETi objects of MOT type. If OBJETi is an ENTIER or FLOTTANT type object, it will be first converted into a string. *N or /N enables you to centre the object left or right on the Nith line. Example : _________ PRESS = 25.86 ; ICAS = 2 ; AA=CHAINE ' CAS DE CHARGE NUMERO:' ICAS ' PRESSION :' PRESS; the above series of instructions creates the following word : CAS DE CHARGE NUMERO:2 PRESSION : 2.58600E+01 The instruction AA=CHAINE ' CAS DE CHARGE NUMERO:' ICAS FORMAT '(F6.2)' ' PRESSION :' PRESS; creates the following word : CAS DE CHARGE NUMERO:2 PRESSION : 25.86 and the instructions F1='(F6.2)'; BB= CHAINE ' PRES1=' FORMAT F1 PRESS ' PRES2=' PRESS ' PRES3=' FORMAT '(SP,1PE10.3)' PRESS ; creates in BB : PRES1= 25.86 PRES2= 25.86 PRES3=+2.586E+01 IJK=321; CC=CHAINE IJK*10 IJK*20; DD=CHAINE IJK/10 IJK/20; MESS CC ; MESS DD; The result is : 321 321 321 321