View previous topic :: View next topic |
Author |
Message |
analyst Beginner
Joined: 10 May 2007 Posts: 11 Topics: 8
|
Posted: Thu Sep 29, 2011 12:35 am Post subject: How to reduce the file size |
|
|
I am having a JCL which is creating PS with RECL 2000.This JCL is being called by many reporting programs.The length of the reports vary from 100-2000.
When I am generating a report with RECL = 100,still the dataset is being created with LRECL 2000 and when I emailed this file as CSV it is taking huge amount of space.Because of space limitations at the organisation as Max (10 MB).the file is truncated and truncated file has been sent.
Is there any mechansim which reduces the file size in teh above cases.
The RECFM = FBA
Fixed Block
Whether any mechanism will reduce the file size by using any VB file ..or any thoughts..
tHE FOLLOWING JCL IS USED.The DSN: ABC.DEF.GHE is using more space
//STEP1 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSUT1 DD DSN=ABC.DEF.GHE,DISP=(OLD,DELETE,DELETE)
//SYSUT2 DD SYSOUT=(B,TCPSMT) |
|
Back to top |
|
|
warp5 Intermediate
Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Thu Sep 29, 2011 1:23 am Post subject: |
|
|
What does your original file look like? |
|
Back to top |
|
|
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Thu Sep 29, 2011 6:19 am Post subject: |
|
|
Quote: | I am generating a report with RECL = 100,still the dataset is being created with LRECL 2000 | Why does this happen?
And if your intention is to get first 100 bytes only, possibly a simple sort job with INREC/OUTREC of length 100 will works for you, is not it? _________________ Regards,
Anuj |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Fri Sep 30, 2011 7:06 am Post subject: |
|
|
DISP=(OLD,DELETE,DELETE)
You are asking for trouble with this DISP - you are saying to the operating system "please delete this file if the job works OR fails" If it does not matter then why not use a temporary file?
Why not pass the LRECL into the procedure as a symbolic parameter set to the correct value for each execution? _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
analyst Beginner
Joined: 10 May 2007 Posts: 11 Topics: 8
|
Posted: Tue Oct 04, 2011 9:04 pm Post subject: Thanks. |
|
|
Thanks all for your replies.The same file if created with FB with LRECL is taking 45 MB.If I create teh same file with VB then it is taking 3 MB of space.
The dataset created with LRECL = 2000 because multiple programs use the same file and the file sizes valies between 100 to 2000.To cater that I was creating the Dataset with LRECL=2000.
The mailing of 3MB dataset is working fine as the email limitation is 10MB.Thanks for your replies.
Passing Symbolic parameter is the good option,will check on the same. |
|
Back to top |
|
|
|
|