On Sun, May 15, 2005 at 09:24:28AM -0600, Paul Gilmartin ([EMAIL PROTECTED]) 
wrote:
> What, in particular, is the difficulty?

Heck if I remember; it was years ago.

> I've done the following (but not extensively):
> 
>     push 'blksize(32760) dataset('Target') shr sysout(R)'
>     call prompt('ON')
>     'receive indd(infile) nonames logdsname('''userid()'.log.misc'')'
>     RcvRC = RC
> 
> ... may I expect some rude surprises sooner or later?

I may not have tried Prompt(ON).  I just don't remember any specifics
other than I had to revert to CLIST for some RECEIVE application.

In any case, if you're doing RECEIVE from the spool instead of INDA/
INFILE, in REXX you can't base the response on data in the prompt as
you can in CLIST -- you can only do a fixed response as you've shown.
This generally isn't a problem for INDA/INFILE because the program 
generally knows what it's receiving.  It was also fun trying to 
RECEIVE an unknown number of spool files which all had the same name
but had to be received into unique names.

I stand by my statement that RECEIVE is broken as designed.  There
should be a NOPROMPT mode for receiving one file, with command line
options for specification of everything that can be specified in the
response to the prompt.  There should also be RECEIVE LIST so that a 
program can trap the output in order to process multiple files in a 
reasonable manner.

RECEIVE is broken for the same reason that GUI-only programs are
broken.  Think about how many Windoze programs can't be scripted...


/Leonard

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to