COZBATCH New User

Discussion of the COZBATCH utility for z/OS
Post Reply
mpeck
Posts: 3
Joined: Fri Jun 23, 2017 2:07 pm

COZBATCH New User

Post by mpeck »

I am a new user to COZBATCH and think it's a great product so far.

I am working on migrating production jobs to using COZBATCH which are significantly different from my test jobs.

My current production FTP commands look something like this:

ascii
sendsite
locsite sbdataconn=(IBM-1140,ISO8859-1)
status
cd /Outbox/BOX1/BOX2
PUT 'HLQ.NODE1.NODE2.NODE3.FILE1 +
NODE1_NODE2I_NODE3_%%Y.%%M.%%D%%._NODE4.TXT
PUT 'HLQ.NODE1.NODE2.NODE3.FILE2 +
NODE1_NODE2_NODE3_NODE5.TXT

QUESTIONS:

1. How do I specify multiple folders on the CD command?
2. I want to standardize on using RFILE= and LFILE= because I think it is easier to understand.
3. Please correct me if I am wong:
RFILE - if file is being transferred from mainframe to server (PUT command)
LFILE - if file is file on server (PUT command)

RFILE - if file is being transferred from server to mainframe (GET command)
LFILE - if file is on mainframe (GET command)
4. Can I still use the sendsite and locsite command in COZ FTP?

Many thanks for your consideration of my issue, being a Newbie and all.

Mike Peck
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: COZBATCH New User

Post by dovetail »

Note: COZBATCH is the program that starts a z/OS Unix shell script in batch. The Co:Z SFTP client program is a z/OS Unix shell command: "cozsftp" that you can run in a batch shell script (launched by COZBATCH). Your question is really about Co:Z SFTP; please use the CO:Z SFTP forum for these questions.

To answer your questions:

1) I'm not sure what you mean. The sftp cd command has roughly the same syntax as the ftp cd command.
Please provide more information on what the problem/issue is.

2) and 3) RFILE and LFILE are just variables in the sample SFTP batch scripts that we provide.
For more information, please see: https://dovetail.com/docs/sftp/client.html#client-batch

4) No. These are FTP subcommands.
For Co:Z SFTP subcommands, see: https://dovetail.com/docs/sftp/cozsftp_ref.html
The Co:Z SFTP client uses the "lzopts" subcommand to set options.
The CO:Z SFTP options are not the same as the options on the FTP "site" command.
For more information on Co:Z SFTP options, see: https://dovetail.com/docs/sftp/options.html
Post Reply