(view source code of readline.rex as plain text)
/* Read a single line from standard input *//* Rexx version of OS/2 Warp 4 COMMAND.COM's internal READLINE command *//* Written by Rob van der Woude */parse upper arg commandline
selectwhen commandline = "/V" then upcase = 1
when commandline = "" then nop
otherwise call Syntax
endempty = 0
do i = 1 by 1 while lines( ) > 0
parse pull line
if i = 1 then do
if upcase = 1 then do
say translate( line )
endelse do
say line end endif line = "" then empty = empty + 1
if empty > 100 then leave
endEXIT 0
Syntax: procedure
saysay "Use the READLINE command to read a line of text from the"
say "keyboard and place it in the batch file variables to"
say "This command can only be used from within a batch file."
saysay "SYNTAX: READLINE [/V]"
saysay "where:"
say " /V converts the input line to upper case."
EXIT 1
returnpage last modified: 2025-10-11; loaded in 0.0070 seconds