Command Source Question

690 pts.
Tags:
CMD
CMD Source
Command Source
QCMDSRC
SNDNETF
I'd like to create a command using the same format, logic, & layout that is similar to what is seen when you prompt on the SNDNETF command. Can anyone help me?

Answer Wiki

Thanks. We'll let you know when a new response is added.

You could do a CRTDUPOBJ of the SNDNETF and you would have a copy of the full logic and format.

TPinky
——————————————————————————————————————————————-
No, I wouldn’t. I’m sorry, but that doesn’t really make sense. Let me rephrase the original question:

I want to create a command where the user will put in a MEMBER NAME along with the qualified LIBRARY and SOURCE TYPE and will also have the ability to put a + sign in a seperate field, which will in-turn give them the opportunity to add ANOTHER MEMBER NAME with it’s QUALIFIED LIBRARY & the SOURCE TYPE.

Pretty much, i’m looking for this:

Member Name: _
Member Name………………………… _____________
Source Library……………………… ______________
Source Type…………………………….. ______

When the user adds the + sign to the first input field as shown above, the screen displays this:

Member Name………………………… _____________
Source Library……………………… ______________
Source Type…………………………….. ______

Member Name………………………… _____________
Source Library……………………… ______________
Source Type…………………………….. ______

Member Name………………………… _____________
Source Library……………………… ______________
Source Type…………………………….. ______

So really, I do not see how creating a duplicate object will help me understand the logic of creating a command using syntax. If there’s a way, do tell, but objects have nothing to do with what I’m trying to accomplish, which is Command Creation by way of coding techniques.
—————————————————————————————————————–

As a direct answer to your question:<pre>
SNDMBRDST: CMD PROMPT(‘Send member Dst’)

PARM KWD(MBR) TYPE(EMBRI) MAX(100) PROMPT(‘Member +
name’)

EMBRI: ELEM TYPE(*NAME) LEN(10) EXPR(*YES) +
PROMPT(‘Member name’)
ELEM TYPE(*NAME) LEN(10) MIN(1) EXPR(*YES) +
PROMPT(‘Source Library’)
ELEM TYPE(*CHAR) LEN(8) EXPR(*YES) PROMPT(‘Source +
Type’)</pre>
But I see that you changed the question a lot in the comment below. If you actually want what’s described in the comment, that can be done too.

Tom

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gilly400
    Hi, If you can get the command sorted out, how do you intend to process it? You'll also need to know how the parameters are going to be passed into a program or procedure to be processed. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Eric Witham
    I can easily work through the parameters. From the user's point of view, they will hit an option number, and this command will be called. The command will upload the source code of the member they entered and validate, then process it, and break it down into another file for analysis. So pretty much, if they are going to let's say put in a Program name & a Display File, they would first put a plus sign on the first input field next to "Member Name....... __" Once they do that, they will get a list of 3 allowable entries. Really, what I wanted to do was to make a command that forced a required entry on either a Program Name, a Display File Name, OR a File name. If they only put a file in I wanted to allow that to happen. They only way I can foresee doing this is doing the command with no MIN value, then if they don't hit anything, it'll error out. Nice, so you helped me solve this by allowing me to babble on and on at 9am. Nyce. Good job GillDoggs. ~SR~
    690 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following