HP3000-L Archives

June 2002, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tad Bochan <[log in to unmask]>
Reply To:
Date:
Thu, 13 Jun 2002 11:04:21 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (160 lines)
1.
Create a variable with a 1000 characters

:setvar x rpt("x",1000)

2.
Try to echo it dereferenced, it fails
:echo !x
      ^
 command line exceeds 511 characters. (CIERR 8105)

3.
This way it fails as well.
:echo ![x]
        ^
 command line exceeds 511 characters. (CIERR 8105)

4.
BUT, if you use the CALC command this way, it works
ok, with the added bonus that if the variable contains
"!" or redirection operators (>,<) they the CI does
not process them. Note that the FileEq is necessary
because of the large record size.

ECHO>TEMPCF CALC X
FILE BIGREC;REC=-4092,1,V,ASCII
XEQ TEMPCF > *BIGREC
PRINT BIGREC
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
:echo>tempcf calc x




Internet
[log in to unmask]@RAVEN.UTC.EDU - 13/06/2002 01:21


Veuillez répondre à [log in to unmask]

Envoyé par :      [log in to unmask]

Pour : HP3000-L

cc :


Objet :     Re: SETVAR


Is there any way to accomplish this in an echo command?

I have gotten stuck in file processing where I have to explicitly reference
the variable with the echo command to send it out to a file.
Example:
echo !str_var_over_300_in_length >*outfile

Is there another output function that I can use instead?

Thanks,

Paul "Inquiring minds want to know" Scott

-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]]On
Behalf Of John Clogg
Sent: Wednesday, June 12, 2002 4:06 PM
To: [log in to unmask]
Subject: Re: [HP3000-L] SETVAR


You might be able to accomplish this by not dereferencing the _CCX_VAR_1
variable.  If it is already a string variable (which I assume is the case,
given its length), you can simply use the variable name in the STR function
parameter list, rather than the dereferenced variable in quotes, i.e.,

 SETVAR CCX_IMG_EDP STR(_CCX_VAR_1,944,11)

This way the command does not expand at all.

-----Original Message-----
From: Donald N. Frantum [mailto:[log in to unmask]]
Sent: Wednesday, June 12, 2002 4:00 PM
To: [log in to unmask]
Subject: SETVAR


I am trying to execute the following commands, but I receive an error.

HP989/HITEST:     SETVAR CCX_IMG_EDP STR("!_CCX_VAR_1",944,11)
                                          ^
Expanded command line exceeds 511 characters. (CIERR 8105)


8105

MESSAGE   EXPANDED COMMAND LINE EXCEEDS 279 CHARACTERS. (CIERR 8105)
CAUSE   After all dereferencing of variables was done, the size of the
command line increased so that the number of characters is greater than
279. This is not allowed.
ACTION   Reduce size of command line.

Does anyone know a way to extend this number?

Thanks in advance,
Donald

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *






This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2