• Subject: Re: Validating a member name
  • From: Shahid Yaqoob <shahidyaqoob@xxxxxxxxx>
  • Date: Wed, 8 Sep 1999 21:20:06 -0700 (PDT)


Hi

Use CHKOBJ command 

CHKOBJ OBJ(&LIB/&FIL) OBJTYPE(*FILE) MBR(&MBR)
MONMSG (CPF9801) Exec(....)

Shahid Yaqoob
BPCS Technical Consultant 
Arabian Computer Projects Ltd 

--- "Al Barsa, Jr." <barsa2@ibm.net> wrote:
> At 04:16 PM 09/08/1999 -0400, you wrote:
> >I don't suppose any of you can tell me how to
> validate a member name without
> >coding my own routine?  I have an application where
> a member name will be
> >entered and I want to make sure the system will
> take it before I submit the
> >job to execute the command that will use the member
> name.
> >
> >I have checked the manuals and even wrote a CL
> program to attempt an ADDPFM
> >command to a file that does not exist.  Trouble
> with that is the CPD0078
> >error message is a diagnostic and not picked up by
> MONMSG.
> I would define my own (phoney) command object with
> one parameter, defined 
> as *NAME.  Then format the command and attempt to
> run it through 
> QCMDCHK.  I think that this would correctly analyze
> if your name is valid 
> by AS/400 syntax.
> 
> Al
> 
> 
> 
> 
> +--------------------------------------------------+
> | Please do not send private mail to this address. |
> | Private mail should go to barsa@ibm.net.         |
> +--------------------------------------------------+
> 
> Al Barsa, Jr. - Account for Midrange-L
> Barsa Consulting, LLC.        
> 400 > 390
> 
> Phone:                914-251-1234
> Fax:          914-251-9406
> http://www.barsaconsulting.com
> http://www.taatool.com
> 
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to
> MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to
> MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
> MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list
> owner/operator: david@midrange.com
> +---
> 

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].