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
 
SAS step is always going down with SPACE issue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
sasikumar1984

Active User


Joined: 02 Jul 2007
Posts: 109
Location: Chennai - India

PostPosted: Wed Jan 02, 2008 1:58 am    Post subject: SAS step is always going down with SPACE issue
Reply with quote

I have a PS which is used as Input for a SAS step, but the step is always going down with SPACE issue. Actually this PS is created in the previous step in same job using SAS. But in the next step while using this as input, the job is going down with SPACE problem.

Please find few details of the Dataset

Record Length : 6144
Block Size : 6144
Total num of Records :

Regards,
Sasikumar.K
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Wed Jan 02, 2008 2:37 am    Post subject: Reply to: Qn related to SAS and SORT
Reply with quote

post the jcl and the syslog/msglog
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed Jan 02, 2008 4:07 am    Post subject: Reply to: SAS Question
Reply with quote

I don't understand.

1. Why would a dataset be allocated with the LRECL and BLKSIZE the same?

2. How can an INPUT dataset have a space problem? That's not logical.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Jan 02, 2008 2:45 pm    Post subject:
Reply with quote

Quote:
Why would a dataset be allocated with the LRECL and BLKSIZE the same?
I assume you know this - There is no restrictions. This takes more DASD space and should be realized by the person who is creating with this DCB parameter.
Back to top
View user's profile Send private message
abhishekmdwivedi

New User


Joined: 22 Aug 2006
Posts: 95
Location: india

PostPosted: Wed Jan 02, 2008 3:15 pm    Post subject: Reply to: SAS Question
Reply with quote

Shashi ,

Can you please post the SASLOG for the same.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Wed Jan 02, 2008 3:19 pm    Post subject: Reply to: SAS Question
Reply with quote

Quote:
Everything that has a begining has a end.....


it depends...
salami/sausages are universally considered as having two ends icon_biggrin.gif
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Wed Jan 02, 2008 7:36 pm    Post subject: Reply to: SAS Question
Reply with quote

SAS datasets are unique to SAS processing. A DCB of FS/6144/6144 with a DSORG of PS is perfectly normal, although FS/27648/27648 is probably a little more efficent. A SAS input dataset may also be an output dataset based on the logic in the SAS program.

You can use the following SAS JCL to list the contents of your SAS dataset:

Code:

//XSAS EXEC SAS RSYSOUT='*',LSYSOUT='*'                         
//SYSIN DD *                                                   
 PROC CONTENTS DATA=PROD1._ALL_ ;                               
//SAS.PROD1   DD   DSN=HLQ.SAS.INPUT.DATASET,DISP=OLD 



This should provide a list of all the members inside the SAS input dataset.

If any of the members are unneeded, they may be deleted to free up space using:

Code:

//XSAS EXEC SAS RSYSOUT='*',LSYSOUT='*'                   
//SYSIN DD *                                               
 PROC DELETE DATA=PROD1.ACCT;                             
//SAS.PROD1   DD   DSN=HLQ.SAS.INPUT.DATASET,DISP=OLD



If there is nothing to be deleted, you may need to consider allocating additional SAS datasets and referencing them in the SAS program. If some of the steps in the SAS program are writing to the SAS dataset, but are unnecessary to the final output, these may be written to temporary SAS work datasets by changing:


Code:

DATA PROD1.WORK;


to

Code:

DATA WORK;


Without the PROD. prefix, SAS will assume the file is temporary and will write it to the temporary work DD in the program. You may all allocate your own temporary WORK files such as:

Code:

//WORKX     DD DSN=&&TEMPWK1,UNIT=SYSDA,SPACE=(6144,(&WORK),,,ROUND),         
//             DCB=(RECFM=FS,LRECL=6144,BLKSIZE=6144,DSORG=PS),
//             DISP=(NEW,PASS)


SAS could then reference the WORKX file by using:

Code:

DATA WORKX.WORK;


Also note that you can allocate your original SAS dataset using the maximum amount of SPACE your installation will allow.

Code:

//SAS.SASLIB DD DSN=HLQ.INPUT.SAS.DATASET,             
//             UNIT=SYSDA,RETPD=120,DISP=(,CATLG),       
//             DCB=(RECFM=FS,LRECL=27648,BLKSIZE=27648),
//             SPACE=(CYL,(550,50))                     
Back to top
View user's profile Send private message
hemu

New User


Joined: 04 Jan 2008
Posts: 3
Location: chennai

PostPosted: Mon Jan 07, 2008 10:43 am    Post subject: SAS Problem
Reply with quote

Hi Sasikumar,

Allocate the PS by giving primary quantity as 1000 then I hope you wont get space problem.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Jan 08, 2008 1:08 pm    Post subject: Re: SAS Problem
Reply with quote

hemu wrote:
Hi Sasikumar,

Allocate the PS by giving primary quantity as 1000 then I hope you wont get space problem.

1000 what, Kb, Mb, Tracks, Cylinders, Blocks ???
Back to top
View user's profile Send private message
hemu

New User


Joined: 04 Jan 2008
Posts: 3
Location: chennai

PostPosted: Tue Jan 08, 2008 1:29 pm    Post subject: SAS Problem
Reply with quote

Hi,

Sorry for the confusion icon_confused.gif . need to allocate 1000 cylinders in primary
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Tue Jan 08, 2008 1:35 pm    Post subject: Reply to: SAS Question
Reply with quote

Quote:
Allocate the PS by giving primary quantity as 1000 then I hope you wont get space problem.


Just being picky..

why 1000 ??

do You have some kind of interest in selling auxiliary storage icon_biggrin.gif
allocations should be made after having evaluated the needs and the consequences,
not by just plugging in some value hoping not to get in trouble until the next time
Back to top
View user's profile Send private message
Alan Voss

New User


Joined: 29 Nov 2006
Posts: 32
Location: Jacksonville, FL

PostPosted: Tue Jan 08, 2008 8:51 pm    Post subject:
Reply with quote

We're all still pretty much just guessing how to resolve this problem without many facts. It would still be helpful to see the SASLOG and the JCL. And, it seems that the original poster has been surprisingly quiet in this whole interchange of ideas. Maybe "the problem has gone away".
Back to top
View user's profile Send private message
imthyaz_shaik

New User


Joined: 22 May 2007
Posts: 3
Location: Bangalore

PostPosted: Thu Jan 17, 2008 11:31 am    Post subject:
Reply with quote

simple solution create sas data set with null option.. data _null_;

it won;t give the space pb. only thing is u won't use this dataset again with set para meter
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jan 17, 2008 1:11 pm    Post subject:
Reply with quote

imthyaz_shaik wrote:
simple solution create sas data set with null option.. data _null_;

it won;t give the space pb. only thing is u won't use this dataset again with set para meter

If the data is reread in SAS format then by doing this a rewrite of following code will be required.

As the OP never told us the true nature of the problem, it could be that the file with space problems is already an external file.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am

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