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 - SYSIN

 
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
sairamjaya
Beginner


Joined: 01 Mar 2006
Posts: 21
Topics: 6

PostPosted: Sat Mar 04, 2006 9:01 pm    Post subject: PKZIP - SYSIN Reply with quote

Hello,
I am using PKZIP utility in my Jcl. The JCL step is shown below. I would like to know (1) the significance of each of the paramaters and (2) do I really need the last line for this step. If I need why? -- Please help me.
Code:

//JS400    EXEC PGM=PKZIP,COND=(4,LT),                     
//         REGION=2048K                                   
//*                                                       
//SYSPRINT DD SYSOUT=*                                     
//SYSIN    DD *                                           
 -ECHO                                                     
 -ARCHIVE(AAAA.BBBBB.CCCCCCC.DDDDDDD.ZIP)                 
 -ARCHUNIT(SYSDA)                                         
 -TRAN()                                           
 -TEXT                                                     
 -DELIM(LF)                                               
 -TERM()                                                   
 -METHOD(SUPERFAST)                                       
 -TEMPSPACE(CYL)                                           
 -TEMPUNIT(SYSDA)                                         
 -TEMPPRIMARY(300)                                         
 -TEMPSECONDARY(50)                                       
 -ZIPPED_DSNAAAA.BBBBB.CCCCCCC.DDDDDDD.TXT,XXXXXXX.TXT)
 AAAA.BBBBB.CCCCCCC.DDDDDDD.TXT    :?:
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Sat Mar 04, 2006 9:47 pm    Post subject: Reply with quote

You know, these are all described in some detail in the manual. However:
Code:

-ECHO - Display (echo) the input parameters.
-ARCHIVE - Output ZIP archive dataset name.
-ARCHUNIT() - UNIT parameter for -ARCHIVE dataset allocation.
-TRAN() - Translate Table Name (ASCII default if not specified).
-TEXT - Translate EBCDIC to ASCII before compression.
-DELIM() - For -TEXT mode, ASCII end-of-record delimiter.
-TERM() - For -TEXT mode, ASCII end-of-file delimiter.
-METHOD() - Compression level and speed.
-TEMPSPACE() - Temporary storage allocation parameters.
-TEMPUNIT()
-TEMPPRIMARY()
-TEMPSECONDARY()
-ZIPPED_DSN(MVS_NAME,ARCHIVE_NAME) - Specifies how to rename an MVS dataset name for the associated archive file.
AAAA.BBBBB.CCCCCCC.DDDDDDD.TXT - MVS Dataset(s) to be compressed. Yes, this information is required, unless you opt to use the -INFILE(ddname) parameter instead.
Back to top
View user's profile Send private message
sairamjaya
Beginner


Joined: 01 Mar 2006
Posts: 21
Topics: 6

PostPosted: Sat Mar 04, 2006 10:09 pm    Post subject: Reply with quote

Thank you for your response. Could you please tell me little more about using -INFILE(ddname) ---- This means, if one of my SYSIN parematers contain _INFILE(AAAA.BBBBB.CCCCCCC.DDDDDDD.TXT), this would take care of the last line.

Also I'm facing a peculiar problem, following the PKZIP step, I have FTP step. After ftp step --- the results on the FTP server are not as expected. It creates additional sub-directories. In the above case I could see AAAA\BBBBB\CCCCCCC\DDDDDDD\TXT on th FTP server original folder. I could not figure out the exact reason. Please let me know if have any idea.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Sun Mar 05, 2006 9:37 am    Post subject: Reply with quote

I think your problem seems to have something to do with the -HIERARCHY command.
Back to top
View user's profile Send private message
sairamjaya
Beginner


Joined: 01 Mar 2006
Posts: 21
Topics: 6

PostPosted: Sun Mar 05, 2006 1:50 pm    Post subject: Reply with quote

superk wrote:
I think your problem seems to have something to do with the -HIERARCHY command.
In fact there were 4 steps in the JCL and only one step that created these sub-directories. What I found was the file name was erronomiously misspelled in the ZIPPED_DSN. Could this result in creating these sub-directories. These sub directories were as described in the last line, i.e. each node of the dataset were created as sub-directories. AAAA\BBBBB\CCCCCCC\DDDDDDD\TXT.

So can I remove the last line (AAAA.BBBBB.CCCCCCC.DDDDDDD.TXT) in the SYSIN parameter-- will my PKZIP work.
--- Any suggestions please
Back to top
View user's profile Send private message
sairamjaya
Beginner


Joined: 01 Mar 2006
Posts: 21
Topics: 6

PostPosted: Sun Mar 05, 2006 1:52 pm    Post subject: Reply with quote

superk wrote:
I think your problem seems to have something to do with the -HIERARCHY command.
In fact there were 4 steps in the JCL and only one step that created these sub-directories. What I found was the file name was erronomiously misspelled in the ZIPPED_DSN. Could this result in creating these sub-directories. These sub directories were as described in the last line, i.e. each node of the dataset were created as sub-directories. AAAA\BBBBB\CCCCCCC\DDDDDDD\TXT.

So can I remove the last line (AAAA.BBBBB.CCCCCCC.DDDDDDD.TXT) in the SYSIN parameter-- will my PKZIP work.
--- Any suggestions please
Back to top
View user's profile Send private message
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