View previous topic :: View next topic
|
Author |
Message |
vamanchi
New User
Joined: 28 Jul 2005 Posts: 2
|
|
|
|
Hi i am having a problem how to write a jcl for ldapmdfy or gldmdfy using a jcl. The ldap commands are provided in a control card or instream.
ldapmodify on unix takes this simple format to read through a file
ldapmodify -f /tmp/modifyentry assuming modifyentry is a ldap file
To simulate that on z/OS v1.6 jcl, my guess would be to put the ldap file in a dataset and feed it to the command something like below
//TSOBGJOB EXEC PGM=IKJEFT1A,REGION=4M
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSOUT DD SYSOUT=*
//SYSTSIN DD *
gldmdfy -f <dataset name>
/*
//TSOLDIF DD DSN=LDIF.FILE,DISP=SHR
//
But the command doesn't recocgnise the dataset. I have also tried using DDNAME but it didn't work. I am wondering if anybody has experience on this or know how to read a dataset in the instream. Please share your comments. |
|
Back to top |
|
|
vamanchi
New User
Joined: 28 Jul 2005 Posts: 2
|
|
|
|
Ok I figured it. Don't worry.
We need to create a HFS dataset that mounts the file under the temporary work space and use that file as input to ldapmodify |
|
Back to top |
|
|
mallu
New User
Joined: 11 May 2006 Posts: 1
|
|
|
|
Hi vamanchi
I have a requirement to access the LDAP from the mainframe to get some information regarding a user. Can you advise the best way to proceed.
Thanks
Pk |
|
Back to top |
|
|
|