Hello,
I want to make an LDAP-search with the REXX-EXEC LDAPSRCH. This z/OS utility can be used to get attributes of LDAP-entries. It can be found on HLQ.SGLDEXEC(LDAPSRCH) and is documented in "IBM Tivoli Directory Server Client Programming for z/OS" (
The request is working fine. The LDAPSRCH-command writes the output to the terminal. Unfortunately I can't trap the output, when I'm calling the command online within rexx:
I've tried to allocate SYSPRINT, SYSOUT, STDOUT, OUTPUT but the output have not been written into the allocated files. OUTTRAP also doesn't work.
But if I execute the command within an JCL with DD-Name SYSPRINT, then the output from LDAPSRCH is written to SYSPRINT!
I don't understand this behaviour!
Does anybody have an idea, how I can trap the output from this command?
Thanks
Adam
I want to make an LDAP-search with the REXX-EXEC LDAPSRCH. This z/OS utility can be used to get attributes of LDAP-entries. It can be found on HLQ.SGLDEXEC(LDAPSRCH) and is documented in "IBM Tivoli Directory Server Client Programming for z/OS" (
The request is working fine. The LDAPSRCH-command writes the output to the terminal. Unfortunately I can't trap the output, when I'm calling the command online within rexx:
Code:
call LDAPSRCH '-h ldaphost ',
'-D CN=userid,OU=Benutzerkonten,DC=bk,DC=xxxxx,DC=de -w password ',
'-b CN='!!user!!',OU=Benutzerkonten,DC=bk,DC=xxxxx,DC=de objectclass=* ',
'department displayName sn extensionAttribute extensionAttribute1 ',
'telephoneNumber'
But if I execute the command within an JCL with DD-Name SYSPRINT, then the output from LDAPSRCH is written to SYSPRINT!
I don't understand this behaviour!
Does anybody have an idea, how I can trap the output from this command?
Thanks
Adam