IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

example of pkzip VB vsam file them FTP it to server


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Neil

New User


Joined: 24 Dec 2005
Posts: 2
Location: Tallahassee Fla.

PostPosted: Sat Dec 24, 2005 1:00 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Dec 24, 2005 9:53 am
Reply with quote

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
View user's profile Send private message
Neil

New User


Joined: 24 Dec 2005
Posts: 2
Location: Tallahassee Fla.

PostPosted: Tue Dec 27, 2005 7:03 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top