Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us