AS/400 command creation. Help Needed.

344775 pts.
Tags:
AS/400
Command function
I need some help creating an AS/400 command that has two parameters that will display when F4 is pressed, but they must not be filled at the same time. If both fill at the same time, the system should throw an error message. What do I need to do to create such a command?

Answer Wiki

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

Discuss This Question: 4  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
  • CharlieBrowne
    Put an edit in your CPP (Command Processing Program). It can send back an error
    41,370 pointsBadges:
    report
  • TomLiotta
    You should code the command not to allow both to be have values at the same time. But without seeing the command definition statements that you have, we can't say how it should be done. CharlieBrowne's suggestion should be possible, but it shouldn't need to get as far as the CPP. Under some circumstances, a VCP would be better than the CPP making the decision; but the *CMD language itself can usually handle this. -- Tom
    125,585 pointsBadges:
    report
  • WoodEngineer
    Check out the DEP command statement.  It may do what you need.  This is how IBM describes DEP:
    "Defines a required relationship between parameters and parameter values that must be checked. This relationship can refer to either the specific value of a parameter or parameters or to the required presence of parameters."
    6,435 pointsBadges:
    report
  • TomLiotta
    One or more DEP condition statements would be the likely way to handle this. -- Tom
    125,585 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