Placing curser to End of the Line.

IBM's Command List programming language & Restructured Extended Executor

Placing curser to End of the Line.

Postby bazzigar » Sun Jul 29, 2012 9:53 pm


May I know how can I place the curser to be at specific location , like end of the line.

Say "Enter Your Name:"
Pull Name

So when we run this I need the curser sould be pleace at last of SAY instruction , not at new line which I am getting now.

Enter Your Name:_

Posts: 29
Joined: Sat Feb 11, 2012 7:20 am
Has thanked: 0 time
Been thanked: 0 time

Re: Placing curser to End of the Line.

Postby prino » Sun Jul 29, 2012 11:50 pm

Not possible in REXX, unless you use external non-REXX code.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: Placing curser to End of the Line.

Postby NicC » Mon Jul 30, 2012 12:46 am

You can do it on PC Rexx using Charout but on the mainframe you have to call something else to do it for you. A short CLIST (spit spit) to receive a parm of what to write using WRITENR is what you need.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Placing curser to End of the Line.

Postby steve-myers » Mon Jul 30, 2012 10:24 am

At one level, I'm inclined to agree with NicC. I got out the Rexx manual to see if there was something like the CLIST WRITENR command, but I sure didn't see anything obvious.
Global moderator
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Placing curser to End of the Line.

Postby enrico-sorichetti » Mon Jul 30, 2012 5:30 pm

but the TS, given the proper zOS and components level might try to play around with the
REXX stream data I/O ... 160520.htm
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Global moderator
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Return to CLIST & REXX


  • Related topics
    Last post