Need help with CZPOSTPR

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
Marc
Posts: 9
Joined: Thu Sep 04, 2014 5:25 am

Need help with CZPOSTPR

Post by Marc »

Hello,

I need CZPOSTPR to send WTO at end of SFTP transfert to a Coz server so that automation can trap it then schedule batch job.
I think that I have to get IBM FTP exit sample FTPOSTPR then rename to CZ*, then compile in a LINKLIST dataset. Right ?
FTPOSTPR is written in C, I do not have a C compiler; there is an assembler version in the IBM samplib, will Coz work with the assembler version of the exit ?
Any sample of a modified assembler version somewhere ?
Thank you.

Regards.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Need help with CZPOSTPR

Post by dovetail »

Hi Marc,

Yes, you can use either the C or assembler sample IBM FTPOSTPR exit.

They can be found in:

TCPIP.SEZAINST(FTPOSTPA) (assembler)
TCPIP.SEZAINST(FTPOSTPR) (C)

Besides customizing the messages written by these exits, you just need to rename the load module from FTPOSTPR to CZPOSTPR.

Here is additional documentation on the calling parameters to the FTPOSTPR exit:
http://www-01.ibm.com/support/knowledge ... m%23stprue

There is also some information on CZPOSTPR in our exits guide:
http://dovetail.com/docs/sftp/coz_sftp_exits.pdf

As you can see in the exits guide, the CZPOSTPR exit will only be passed 18 parameters (the 19th was added by IBM some time back).
So if you use the sample IBM FTPOSTPR exits, you will need to change the sample to only check for 18 parameters.

Also noted in our exits guide under "Enabling User Exits":
You can put them in LNKLST. You can also put them in STEPLIB for Co:Z SFTP server by customizing /etc/ssh/sftp-server.rc :

export STEPLIB=MY.STEPLIB

(Note that for CZPOSTPR, you do *not* need this library to be APF authorized.)

You will also want to enable the "reqexits" setting in /etc/ssh/cozsftp_server_config.
For more information on this setting, see: http://dovetail.com/docs/sftp/options.h ... ns_general
Marc
Posts: 9
Joined: Thu Sep 04, 2014 5:25 am

Re: Need help with CZPOSTPR

Post by Marc »

Hello,

Sorry I forgot to say "thank you". This helped me a lot.

:D
Post Reply