IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How could I determine the total size of my output file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Wed May 24, 2006 5:50 am
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
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
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
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
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: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Wed May 24, 2006 9:05 pm
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: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Wed May 24, 2006 9:15 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top