Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How could I determine the total size of my output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Anran

New User


Joined: 12 Mar 2005
Posts: 14

PostPosted: Wed May 24, 2006 5:22 am    Post subject: How could I determine the total size of my output file
Reply with quote

Hi there,

I have to create a report output file, but I have to make sure my output file is no bigger than 30 MB. Please kindly advise if I could do this in JCL or any other solutions in COBOL?

Thanks in advance!

Anran
Back to top
View user's profile Send private message

dneufarth

Active User


Joined: 27 Apr 2005
Posts: 252
Location: Cincinnati OH USA

PostPosted: Wed May 24, 2006 5:50 am    Post subject:
Reply with quote

allocate output dataset primary extent of 30 mb with no secondary allocation

when space exhausted job will abend
Back to top
View user's profile Send private message
Anran

New User


Joined: 12 Mar 2005
Posts: 14

PostPosted: Wed May 24, 2006 6:41 am    Post subject:
Reply with quote

Thanks, Dave!!! I am not sure how to code the output dataset primary extent of 30 mb. Could you please give me a coding example?

Anran
Back to top
View user's profile Send private message
Anran

New User


Joined: 12 Mar 2005
Posts: 14

PostPosted: Wed May 24, 2006 6:46 am    Post subject:
Reply with quote

and I forgot to mention, my output file is a GDG file

Anran
Back to top
View user's profile Send private message
sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 183
Location: hyderabad

PostPosted: Wed May 24, 2006 10:58 am    Post subject:
Reply with quote

Hi,
Here is the sample for defininig the data set.

DISP=(,CATLG,CATLG),
UNIT=XXXX,
SPACE=(CYL,(X,Y),RLSE),
DCB=(RECFM=FB,LRECL=80)

You need to change the XXXX and X,Y as per your requirement.

Thanks
Krishy
Back to top
View user's profile Send private message
Anran

New User


Joined: 12 Mar 2005
Posts: 14

PostPosted: Wed May 24, 2006 7:29 pm    Post subject: Re: How could I determine the total size of my output file
Reply with quote

Hi, Krishy,

Thanks, I know how to define the output data set, but I don't know how to fill in the XXXX, X, Y to make sure my output is no bigger than 30 MB

DISP=(,CATLG,CATLG),
UNIT=XXXX,
SPACE=(CYL,(X,Y),RLSE),
DCB=(RECFM=FB,LRECL=80)

Anran
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 252
Location: Cincinnati OH USA

PostPosted: Wed May 24, 2006 9:05 pm    Post subject:
Reply with quote

use the AVGREC=U DD statement parameter in conjunction with the SPACE= parameter

Code:

DSN=a.b.c,
DISP=(NEW,CATLG,DELETE),
UNIT=SYSDA,
AVGREC=U,SPACE=(80,(375000),RLSE),
DCB=(RECFM=FB,LRECL=80)


primary allocation is 30,000,000/80

the actual required space to store this dataset will exceed 30M as devices vary in their optimal blocking factors, but this method will allow for 30M data.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 252
Location: Cincinnati OH USA

PostPosted: Wed May 24, 2006 9:15 pm    Post subject:
Reply with quote

for gdg

Code:
DSN=a.b.c(+1),
DISP=(NEW,CATLG,DELETE),
UNIT=SYSDA,
AVGREC=U,SPACE=(80,(375000),RLSE),
DCB=(RECFM=FB,LRECL=80)
Back to top
View user's profile Send private message
Anran

New User


Joined: 12 Mar 2005
Posts: 14

PostPosted: Wed May 24, 2006 10:24 pm    Post subject: Re: How could I determine the total size of my output file
Reply with quote

Thank you so much !!

I think AVGREC=U will solve my problems!!

Have a good day!!

Yurong
Back to top
View user's profile Send private message
raviprasath_kp
Warnings : 1

New User


Joined: 20 Feb 2005
Posts: 65
Location: chennai

PostPosted: Sun Oct 08, 2006 9:15 pm    Post subject:
Reply with quote

hi what i s AVREC=U
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us