MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PKZIP and FTP to my desktop through batch(jcl)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
gv_nagendra
Beginner


Joined: 23 Oct 2006
Posts: 1
Topics: 1

PostPosted: Mon Oct 23, 2006 7:35 pm    Post subject: PKZIP and FTP to my desktop through batch(jcl) Reply with quote

My requirement is to ZIP a text file and send to my desktop and should be able to view the dta in the text format.

1. I used the utility PKZIP to zip the flatfile and it did ceate a anothe flatfile with .ZIP as the lastqualifier. The zipped file has junk values and now i want to send the zipped file to location in my computer(to c drive or e drive)through FTP and should be able to see the original data in the text format.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Mon Oct 23, 2006 7:47 pm    Post subject: Reply with quote

gv_nagendra,

Try this

Code:

//STEP0100 EXEC PGM=PKZIP,REGION=2M               
//*                                               
//STEPLIB  DD DSN=PKZIP.LOADLIB,
//            DISP=SHR
//SYSOUT   DD SYSOUT=*                             
//SYSPRINT DD SYSOUT=*                             
//SYSUDUMP DD SYSOUT=*                             
//INPUT    DD DSN=YOU INPUT MAINFRAME FILE,     
//            DISP=SHR                             
//SYSIN    DD *
-ECHO                             
-ARCHIVE(YOUR.PC.ZIPPED.FILE.ZIP)
-ARCHSCLASS(TSOLRG)               
-TEMP_SPACE_TYPE(CYL)             
-TEMP_SPACE_PRIMARY(10)         
-TEMP_SPACE_SECONDARY(05)         
-INDD(INPUT)                     
-FILE_TERMINATOR()               
/*
//STEP0200 EXEC PGM=FTP,PARM='(EXIT=16'                   
//SYSPRINT DD SYSOUT=*                                     
//OUTUT    DD SYSOUT=*
//INPUT    DD *
your pc ipaddress
userid
password                                           
bin                                                 
PUT 'your.pc.zipped.file.zip' pc.zipped.file.zip
quit                                               
/*



Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group