View previous topic :: View next topic |
Author |
Message |
sairamjaya Beginner
Joined: 01 Mar 2006 Posts: 21 Topics: 6
|
Posted: Sat Mar 04, 2006 9:01 pm Post subject: PKZIP - SYSIN |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Sat Mar 04, 2006 9:47 pm Post subject: |
|
|
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 |
|
 |
sairamjaya Beginner
Joined: 01 Mar 2006 Posts: 21 Topics: 6
|
Posted: Sat Mar 04, 2006 10:09 pm Post subject: |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Sun Mar 05, 2006 9:37 am Post subject: |
|
|
I think your problem seems to have something to do with the -HIERARCHY command. |
|
Back to top |
|
 |
sairamjaya Beginner
Joined: 01 Mar 2006 Posts: 21 Topics: 6
|
Posted: Sun Mar 05, 2006 1:50 pm Post subject: |
|
|
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 |
|
 |
sairamjaya Beginner
Joined: 01 Mar 2006 Posts: 21 Topics: 6
|
Posted: Sun Mar 05, 2006 1:52 pm Post subject: |
|
|
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 |
|
 |
|
|