>i'm trying to send a tso allocate command , the problem is
>the command is bigger than 250 caracters.
There are a few different ways to tackle that problem. Here
are the ones I'd try, easiest ones first.
1) Try abbreviating whatever you can. You'll find lots
of opportunities to abbreviate in TSO help on ALLOC
2) Make the command a string first, and concatenate to the
string until you have everything you need.: (The 250 limit
is to the STATEMENT, not a limit to how long a STRING can be)
i.e.. AllocString = "alloc da(..)..... " (first part of string)
AllocString = AllocString parm(...) (concatenate rest of it)
Address TSO ""AllocString""
3) Finally, you could use the "ATTRIB" command to define
some of the allocate attributes, then refer to that ATTRIB
definition in your ALLOC statement. That would split the
amount of text between the ALLOC and ATTRIB statements.
Hope that helps!
John McLaughlin
concat = "'"long.dataset.name01"'" "'"long.dataset.name02"'" . . .
(you can even add to it as follows:)
concat = concat "'"one.more.long.dataset.name"'"
then
"ALLOC DD(DDNAME) DA("concat") SHR REUSE"
Hope this does the trick!
Or, you could be putting in unnecessary spaces.
Try:
"ALLOC FI(....)",
"DA(......)",
"SHR"
Rather than:
"ALLOC FI(....)
DA(......)
SHR"
--
Neil Hancock, G22c, The Met Office, London Rd, Bracknell, RG12 2SZ, UK.
Email: nhan...@meto.govt.uk * All opinions expressed are *
Phone: +44 1344 856944 * my own and not my employers. *
Or you could:
address "TSO" "ALLOC DD(FRED) SHR REUSE DA(" ,
"'HLQ1.HLQ2.HLQ3'" ,
"'HLQ1.HLQ2.HLQ3'" ,
.
.
.
.
"'HLQ1.HLQ2.HLQ3'" ,
"'HLQ1.HLQ2.HLQ3')"
eliminating varariables. It's only the length of literals that are
restricted, Computed results and variables can be any length.