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 

How to reduce the file size

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


Joined: 10 May 2007
Posts: 11
Topics: 8

PostPosted: Thu Sep 29, 2011 12:35 am    Post subject: How to reduce the file size Reply with quote

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
View user's profile Send private message
warp5
Intermediate


Joined: 02 Dec 2002
Posts: 429
Topics: 18
Location: Germany

PostPosted: Thu Sep 29, 2011 1:23 am    Post subject: Reply with quote

What does your original file look like?
Back to top
View user's profile Send private message Visit poster's website
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Thu Sep 29, 2011 6:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Sep 30, 2011 7:06 am    Post subject: Reply with quote

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
View user's profile Send private message
analyst
Beginner


Joined: 10 May 2007
Posts: 11
Topics: 8

PostPosted: Tue Oct 04, 2011 9:04 pm    Post subject: Thanks. Reply with quote

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