×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

User Input

User Input

User Input

(OP)
Hi,

I have managed to do some progress at path of learning.

But i am stuck once more.

I have a report with lists of countries.

I have done a working script/run with search to the report so it shows only the country
that i define in the run.

but i want the user to define the country that should be
searched. how can i get user input to my run?

I have tried @brk & @brk out INPUT$ as stated in
my manual, but i am not quite there.

Please old MAPPER pros i seek for your wisdom.

RE: User Input

(OP)
I managed to get direct input with just
@chk INPUT$ <something>s10 .

But you do need to know to put the input
after the run command.

It would be more useful to ask the input
from the user.

"progress is progress. no matter how slow"

RE: User Input

OMG!! You are using BRK / BRK OUT statments to display screens and accept inputs?  Wow, that's an archaic coding technique.

What version of BIS (MAPPER) are you running?  Are you familiar with the MQS+ tool (hopefully that's delivered with your copy).

RE: User Input

(OP)
Runnong BIS 10.1 and MQS+ installed.

I know one can do this easier using these tools,
but i still want to first learn it the old way.

 

RE: User Input

You can enter input when the run is started

myrun input1,input2,input3


At the start of the run use

@chg input$ <input1>s20,<input2>s20,<input3>s20 .



Another way is to build a screen and have the user enter information. @out can be used but it is rather archaic, and is usually black-and-white.

@sc is what I use, and is somewhat easier to use (with practice).

In either case, after outputting the screen, use @chg input$ as above, but make each variable the same size as each field, in order top to bottom.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close