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
 

 

File names of input files which doing PKZIP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: File names of input files which doing PKZIP
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

Site Director


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

PostPosted: Sat Jun 30, 2007 3:49 am    Post subject:
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    Post subject: Re: File names of input files while doing PKZIP
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Re: File names of input files which doing PKZIP
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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