Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

example of pkzip VB vsam file them FTP it to server

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: example of pkzip VB vsam file them FTP it to server
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

Moderator Team Head


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

PostPosted: Sat Dec 24, 2005 9:53 am    Post subject: Re: example of pkzip VB vsam file them FTP it to server
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    Post subject: Re: example of pkzip VB vsam file them FTP it to server
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us