Creating a dataset

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

subu_2020
Member
Posts: 6
Joined: Mon Jan 21, 2013 5:01 pm

Creating a dataset

Post by subu_2020 » Thu Feb 07, 2013 3:36 pm

Hi,

Is it possible to create a dataset using JCL without specifying space parameters?

Thanks in Advance :)

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Thu Feb 07, 2013 8:46 pm

Why do you want to do that?

Have you tried? Very easy to test, and quicker than asking here and waiting.

It is probably possible to do what you want (given that we don't actually know) even if not the way you want to do it.

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Thu Feb 07, 2013 9:39 pm

Probably. SPACE is not usually necessary when SMS is setup and active, at least in shops I've worked in.

subu_2020
Member
Posts: 6
Joined: Mon Jan 21, 2013 5:01 pm

Post by subu_2020 » Fri Feb 08, 2013 8:48 am

I tried but got the error and also am just the beginner and I dont have more idea on SMS..
If SMS is active what is the default space it will take?

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Fri Feb 08, 2013 12:11 pm

Talk to those people at your site who manage SMS. They will provide a much more accurate, and quicker, response to what is set up at your site.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Fri Feb 08, 2013 12:48 pm

got the error
First mention of any error so how can it be THE error? WHAT error did you get? Without posting that and the JCL associated with the error we cannot tell if the error wasdue to not coding SPACE or due to something else entirely.
Regards
Nic

Srilakshmi
Member
Posts: 3
Joined: Fri Feb 08, 2013 4:41 pm
Location: Bangalore

Post by Srilakshmi » Fri Feb 08, 2013 4:56 pm

Hi Subu,

Remember that whenever you need create a new dataset you need to have Unit & Space Parameter Compulsory.

Ex: //STEP01 EXEC PGM=COBOL1
//INFILE DD DSN=INFILE1,DISP=SHR
//OUTFILE DD DSN=OUTFIL1,
// DISP=(NEW,CTLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL(10,5),RLSE))
Thanks
Srilakshmi

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Sun Feb 10, 2013 9:15 pm

Actually, your question is site specific. As others have also mentioned about it, there are sites where DATACLAS from SMS will come in to picture and you, as an end user, won't need to have SPACE in DCB but at other sites this is a necessity. Yours seem to fall in later category.
Regards,
Anuj

nishy123
Member
Posts: 1
Joined: Fri Feb 15, 2013 10:27 am

Post by nishy123 » Fri Feb 15, 2013 10:35 am

depends on the context which you are using some places space parameter is used while in different contexts it is not used.
Nisheeth.K

diwz
Member
Posts: 44
Joined: Sun Feb 10, 2013 10:39 am

Post by diwz » Fri Feb 22, 2013 6:46 pm

SPACE parameter is a must while allocating the dataset. If you don't know how much space then you have to provide SPACE=(0,(0)). LRECL and RECFM is a must though you can provide BLKSIZE as 0.

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Sun Feb 24, 2013 6:30 am

Suggest you experiment with several space allocations with sms managed datasets and non-sms datasets. Talking with the dasd storage admins may help you learn the local "rules:.
Have a good one

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Sun Feb 24, 2013 5:49 pm

diwz wrote:SPACE parameter is a must while allocating the dataset. If you don't know how much space then you have to provide SPACE=(0,(0)). LRECL and RECFM is a must though you can provide BLKSIZE as 0.
It'd rather depend on the SMS routines at your shop...
Regards,
Anuj

diwz
Member
Posts: 44
Joined: Sun Feb 10, 2013 10:39 am

Post by diwz » Tue Feb 26, 2013 5:00 pm

Please see below message
Last edited by diwz on Tue Feb 26, 2013 5:05 pm, edited 1 time in total.

diwz
Member
Posts: 44
Joined: Sun Feb 10, 2013 10:39 am

Post by diwz » Tue Feb 26, 2013 5:03 pm

Based on above thread, i have a question. Can you please clarify, if the below dataset information shows that the data class is not defined (also not defaulted). It is the dataset information at my shop.
Data Set Information
Command ===>
More: +
Data Set Name . . . . : APROD.CICSOCRT.EPAC.TRANS.G1111V00

General Data Current Allocation
Management class . . : RETGDG1 Allocated cylinders : 1
Storage class . . . : WORK Allocated extents . : 1
Volume serial . . . : SORT04
Device type . . . . : 3390
Data class . . . . . : **None**
Organization . . . : PS Current Utilization
Record format . . . : FB Used cylinders . . : 0
Record length . . . : 300 Used extents . . . : 0
Block size . . . . : 3000
1st extent cylinders: 1
Secondary cylinders : 100 Dates
Data set name type : Creation date . . . : 2013/02/25
SMS Compressible. . : NO Referenced date . . : 2013/02/25
Expiration date . . : ***None***
When I tried creating a dataset with out a SPACE parameter, z/OS throws JCL error saying that SPACE attributes are missing.

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Tue Feb 26, 2013 5:22 pm

Well, I'd go for "yes", but I think it is deliberate. Why are you trying to use a Storage Class which if fairly likely set aside for "Sort Work Datasets"? Name is WORK, volume is SORT04.

If you put something "permanent" in this class, there is a danger that someone from "production control"/"storage management" will visit you carrying a large hammer and ask you "fingers or keyboard?"

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others