accessing recently created gdg

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
sguthrie
Posts: 2
Joined: Mon Apr 04, 2011 12:57 pm

accessing recently created gdg

Post by sguthrie »

Hello All,
Recently we added a sftp step to the end of a batch job. The SFTP step does a put operation on a new GDG dataset that was generated two step earlier in the job, but when we run the ftp step it never pick up the new gdg version always 1 version back. When you reran the sftp step it picks up the new gdg version without any issue.

Anyone having issues with GDG datasets?
Ftping from z/OS server to a Windows server.


Here's a copy of the ftp commands used:

lzopts loglevel=F
lzopts linerule=crlf
lzopts mode=text
lzopts NOtrim
put "//TST.PROD.S0006101.A12898(0)" "TESTFILE/Xax12898.tab"
quit
EOB


Thanks,
~Sabastian
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Co:Z SFTP uses the BPXWDYN allocation service to dynamically allocate datasets.

I think that the problem that you are seeing may be solved by setting the "gdgnt" setting. Refer "Using REXX and z/OS UNIX System Services - SA22-7806" for more information.

To set this in the Co:Z SFTP client:

lzopts gdgnt
Post Reply