× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I am trying to setup a process to change passwords on the iSeries.

and have a file with USER_ID, PASSWORD, EMAIL on the system.

 

then I have a cl which scans through the user_id and does a chgusrprf 

using the USER_ID and PASSWORD as parameters.

 

then I want to do a SNDDST using the email parameter

but it doesn't seem to let me do add a parameter as part of the message.

 

START_LOOP: RCVF                                                     

 

            MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(EOF))             

 

            CHKOBJ     OBJ(&USER_ID) OBJTYPE(*USRPRF)                

 

            MONMSG     MSGID(CPF0000) EXEC(GOTO CMDLBL(EOF))         

 

            CHGUSRPRF  USRPRF(&USER_ID) PASSWORD(&PASSWORD)          

 

            SNDDST     TYPE(*LMSG) TOINTNET((&EMAIL)) 

                              DSTD('PASSWORD CHANGE') 

                              LONGMSG('''AS REQUESTED....YOUR PASSWORD
HAS  BEEN CHANGED TO '' &PASSWORD')              

 

            GOTO START_LOOP

 

has anyone done this before ?

 

Jim

 


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.