Hi,
Is this being done in batch? Foreground TSO? Other (specify)?
We need more context.....
I'm use the ex command in BRAS(member) of the my datset see;
VIEW BRATIME.TIME.CHRIST ---------------> my dataset
Command ===>
Name Prompt Size Created
___EX______ BRAS *Edited 34 2008/09/09 ---- -> dataset member
**End**
see my program rexx BRAS:
/* REXX para mostrar o dia da semana que cai o natal. BY CLAUDIO MARCIO */
/***************************************************************/
/* Say 'Calculate Christmas day in year ?' */
Say 'Este programa informa em que dia da semana foi ou sera o Natal',
'em determinado ano, que ano quer saber ?'
pull year
do until answer \= "S"
if year = "" then year = right(date(),4)
dec25 = date("B",year"1225","S")//7
select
when dec25 = 0 then day = "Segunda-feira"
when dec25 = 1 then day = "Terca-feira"
when dec25 = 2 then day = "Quarta-feira"
when dec25 = 3 then day = "Quinta-feira"
when dec25 = 4 then day = "Sexta-feira"
when dec25 = 5 then day = "Sabado"
otherwise day = "Domingo"
end
if year < right(date(),4) then
say 'Em 'year', o natal foi 'day
else
say 'Em 'year', o natal sera 'day
say 'Deseja saber mais algum ano ? (s/n)'
pull answer
if answer = 'S' then
Say 'Vamos la entao, qual outro ano voce gostaria de saber!!'
else
do
say 'BYE! BYE!'
leave
end
pull year
end
exit
regards
----- Original Message -----
From: "Kenneth E Tomiak" <[EMAIL PROTECTED]>
Newsgroups: bit.listserv.ibm-main
To: <[email protected]>
Sent: Saturday, October 11, 2008 9:05 AM
Subject: Re: REXX error
I put my money on he is changing it. To get the first error I did a cut and
paste of his code and changed the leading x40 to x20 and got the same
first
error. It then works. Changing anything outside the apostrophes caused the
same problem. Thus his second error is coming from somewhere else.
Why would you expect someone who can not code a simple say statement to
turn on trace and find his own problems when he has the listserv to do his
work?
On Wed, 8 Oct 2008 09:04:52 -0500, Paul Gilmartin <[EMAIL PROTECTED]>
wrote:
Date: Tue, 7 Oct 2008 02:12:59 -0300
Content-Type: text/plain
when I run my exec REXX the error appears:
1 +++ ?
IRX0013I Error running BRAS, line 1: Invalid character in program
... clearly a Rexx message. Is Claudio changing the conditions of the
problem without informing us? Or is his script being interpreted as a
CLIST, or open code in SYSTSIN, which contains a token which causes an
invalid Rexx exec to be invoked?
Is this being done in batch? Foreground TSO? Other (specify)? We
need more context.
-- gil
----------------------------------------------------------------------
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
----------------------------------------------------------------------
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