View previous topic :: View next topic
|
Author |
Message |
Neil
New User
Joined: 24 Dec 2005 Posts: 2 Location: Tallahassee Fla.
|
|
|
|
Can not figure out how to pkzip a VB vsam file and them how to FTP it from the mainfram to server. Have no problems with fixed length file but when it comes to the VB it keep droping the RDW. Thanks to anyone who can help. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Are you using the -SAVE_LRECL parameter?
Quote: |
-SAVE_LRECL(Y|N)
Specifies that Record Descriptor Words used for containing record lengths are to be included in the ZIP archive.
If the selected dataset has variable length records and is to be compressed as binary, use -SAVE_LRECL(Y) and the PKZIP program will store the record lengths within the compressed file.
Note that this method is for binary datasets and the command is used in conjunction with the -DATA_TYPE(BINARY) command.
|
|
|
Back to top |
|
|
Neil
New User
Joined: 24 Dec 2005 Posts: 2 Location: Tallahassee Fla.
|
|
|
|
Yes I am using -SAVE_LRECL(Y) I am using the following zip from vsam to sequential before ftping it from mainframe to server
Code: |
//SYSIN DD *
-ECHO
-ARCHIVE_OUTFILE(DD2)
-ARCHIVE_LRECL=(1293)
-ARCHIVE_BLKSIZE=(0)
-ARCHVOL(TEST)
-DATA_TYPE(BINARY)
-SAVE_LREL(Y)
-ATTRIB
-ADD
-INFILE(NYC.TESTV.RSMAST)
|
and then using the following to ftp it.
Code: |
QUOTE SITE LONG
CD //NYCNWA02/DATA/USERS/SIMPSOST
BINARY
SITE LRECL=1293 RECFM=VB BLKSIZE=27153
PUT 'NYC.TESTS.RSMAST.ZIP' AUDRECP1.DAT
CLOSE
quit
|
|
|
Back to top |
|
|
|