I am new in as/400 .
I want to know how can I create menu and when I run the menu show me message like :
--------------------------------------------------------------------------
Enter the queue name : _____
--------------------------------------------------------------------------
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Enter the Printer name: _____
--------------------------------------------------------------------------
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Software/Hardware used:
software
ASKED:
November 16, 2012 6:41 AM
UPDATED:
November 16, 2012 6:50 AM
Are you clear that what you showed in your question was not a “menu” (nor a “message”)? — Tom
You can use Strsda, then Option 2 to design menu. U can also use CRTMNU command with typeMNUDS.
What you’re showing us doesn’t look like a menu but a screen with a program to process the request.
However, you might make do with a menu since the option will use some command where this value will be used.
If your menu issues the command as commandname ??keyword()
Something like this:
wrkoutq ??outq()
The user will be prompted to enter an outq.
Phil
There are three types of menus. The three are created in different ways, and they provide significantly different capabilities. Further, the ways that they can be created might depend on what OS version you are working on and the tools that were installed for you.
Even further, you haven’t told us anything about what you do know; you’ve only said something about what you don’t know. We can’t tell if you know anything about programming at all, so we don’t know what we can say that might make sense to you. Do you program in RPG? COBOL? C? CL? Anything else?
Are you a programmer? An operator? A student who is trying to learn? Taking a class? There is nothing in your profile that gives us a clue about how to communicate with you. How technical can we get?
You haven’t described a problem that you are having. Did you try to create it and ran into some difficulty? Is this a work assignment? A school assignment? Are you only wanting to learn how to create a display, or do you really need a menu with an option to display those prompts? Do you know what to do with the prompts? Since those values would normally be a maximum of only ten characters long, is there a reason you need such large input areas?
Please describe the actual problem so we know what we need to cover.
Tom
Sorry about misunderstanding the lengths. Now I see that the input areas are short and they are separated by dashed lines. The question displays in a browser in a confusing way. — Tom
You create a display file with DDS source. You can also create the screen as a panel with UIM source. (There are a couple other ways to control the screen, but they get more detailed and complicated, e.g., the DSM APIs.) Usually, display file source is generated by using SDA, the Screen Design Aid utility. The STRSDA command is used to start SDA. — Tom
And there is no need to apologize for your English. It only means that you speak at least two languages, and you’re doing it fairly well. — Tom