On: Tue, May 19, 2009 at 02:47:25PM -0400,SPITZ, HOBART CTR DFAS Wrote:

} The following assumes that \ can never occur in the data stored in
} variable Fred.
}
}       "pipe .... | specs \"Fred"\ 1 ... | ..."
}
} The canonical way to handle data in a REXX variable in a delimiter
} independent manner is:
}
}       "pipe .... | specs x"c2x(Fred)" 1 ... | ..."

[...]

} I propose the following equivalent:
}
}       "pipe .... | specs var Fred 1 ... | ..."
}
} That, in turn, suggests the following:
}
}       "pipe .... | specs 1-10 var Fred ... | ...",
}
} which would store the first ten chars of the record in the variable
} Fred.

Hobart, What happens here if "fred" contains one or more imbedded
blanks?

--
Rich Greenberg  N Ft Myers, FL, USA richgr atsign panix.com  + 1 239 543 1353
Eastern time.  N6LRT  I speak for myself & my dogs only.    VM'er since CP-67
Canines:Val, Red, Shasta & Casey (RIP), Red & Zero, Siberians  Owner:Chinook-L
Retired at the beach                                     Asst Owner:Sibernet-L

Reply via email to