Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 241
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: 241
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: 241
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 3 Sat May 06, 2017 12:59 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us