On Thu, 2 Mar 2006 11:20:37 -0600, Bob H <[EMAIL PROTECTED]> wrote:
>I had a guy ask me for a way convert a flat file from mixed to uppercase
>only, in place, in batch.
>
>Im probably overthinking this request but I came up with a batch job that
>calls an edit macro.
>
>And although the macro works in ISPF EDIT just fine, it doesnt work in
>batch.
While not addressing your edit macro question, here's a quick rexx exec
that will convert a file to upper case:
/* rexx */
address tso
eof = 0
do while \eof
"EXECIO 1 DISKRU THEFILE (STEM RECIN."
if rc \= 0
then eof = 1
else do
recin.1 = translate(recin.1)
"EXECIO 1 DISKW THEFILE (STEM RECIN."
end
end
----------------------------------------------------------------------
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