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

File names of input files which doing PKZIP


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pnkumar83

New User


Joined: 28 Jun 2007
Posts: 4
Location: Westlake

PostPosted: Sat Jun 30, 2007 2:49 am
Reply with quote

I am transmitting few files via FTP to a unix server from mainframe. Currently I put the file name that will be used at unix server. Now I am trying the zip the files using PKZIP. When the file is unzipped in unix server the last qualifier of the file is used as file name. Is there a way to change this while zipping so that the file names will remain same as earlier. icon_rolleyes.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jun 30, 2007 3:49 am
Reply with quote

Hello and welcome to the forums,

This does not look like a cobol topic, so i've moved it to the "Other Mainframe Topics" part of the forum.

Please post an example of what is happening and what you would rather have happen. I'm not sure i understand the requirement.
Back to top
View user's profile Send private message
pnkumar83

New User


Joined: 28 Jun 2007
Posts: 4
Location: Westlake

PostPosted: Sat Jun 30, 2007 9:54 am
Reply with quote

Currently I am sending the files via FTP in the following way

<ip address>
<user name>
<password>
put 'mainfram.file.name1' FILE1
put 'mainfram.file.name2' FILE2
quit

Now I want to zip the files and FTP the zip file to server. The server is going to unzip the file and start processing. I am using PKZIP. The problem is when I zip them and when the server unzips it, the files are being saved as NAME1 and NAME2 (Basically the last qualifier of the mainframe file). I want to know if I can mention the file name as FILE1 and FILE2 while zipping so that when the server unzips it, the files get saved as FILE1 and FILE2 only.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Sat Jun 30, 2007 9:56 am
Reply with quote

In PKZIP there is option to give file name.
Just try that
Back to top
View user's profile Send private message
pnkumar83

New User


Joined: 28 Jun 2007
Posts: 4
Location: Westlake

PostPosted: Sat Jun 30, 2007 10:02 am
Reply with quote

Actually I tried a lot. Can you please give me the syntax if possible? icon_cry.gif
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Sat Jun 30, 2007 10:16 am
Reply with quote

Have you checked the manual?

-NIA (*,NEWNAMEXYZK.TXT)

Name the UnZipped file =NEWNAMEXYZ.TXT
Back to top
View user's profile Send private message
pnkumar83

New User


Joined: 28 Jun 2007
Posts: 4
Location: Westlake

PostPosted: Sat Jun 30, 2007 10:31 pm
Reply with quote

I was refering to old manual and so I did not find. This worked. Thank you very much. icon_smile.gif
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
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
Search our Forums:

Back to Top