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

creating a physical sequential file in mainframes


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Shaheen Shaik

New User


Joined: 05 May 2016
Posts: 13
Location: India

PostPosted: Wed Jun 29, 2016 3:46 pm
Reply with quote

Can any one help me with allocating a PS file in mainframes? I got an error saying Invalid DSN type !!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 29, 2016 4:01 pm
Reply with quote

What DSN type did you use? In fact, why did you not post the JCL you used? Or did you not use JCL?
Back to top
View user's profile Send private message
Shaheen Shaik

New User


Joined: 05 May 2016
Posts: 13
Location: India

PostPosted: Wed Jun 29, 2016 4:13 pm
Reply with quote

I have not used the Jcl . I followed th basic path for allocating a ps file. And when allocating it I got Invalid DSN type message.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Jun 29, 2016 5:05 pm
Reply with quote

  1. The only "file" in z/OS is the data on magnetic tape between the beginning of tape and a "file mark," or between two "file marks." Period. End of story.
  2. "PS" is a designator for a sequential data set. It is not correct in z/OS to call a sequential data set a PS data set. They are not called a PS data set in any standard z/OS documentation.
  3. I have been working with OS/360 and is successor operating systems for almost 50 years. I do not know what you mean by a "basic path" to allocate a sequential data set. When I started the only only way to allocate and populate a sequential data set was by using JCL and running a program specified by JCL. Now there are many ways to do this task. Which one did you try to use? We cannot help you without this information.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jun 29, 2016 6:19 pm
Reply with quote

Mainframe sites tend to customize a lot of the system to meet their requirements. It is possible that your invalid DSN type message came about because your site requires one and you did not specify it. Or, because your site has a default DSN type that did not match the data set characteristics that you used. Or, you could be misreading the message and the problem is actually the DSNTYPE parameter.

Mainframes have data sets -- the only files are on tape or in Unix System Services directories. You are completely wrong in saying you are "allocating a PS file" unless you are writing to tape or using Unix System Services.

Your entire issue needs to be addressed by your site support group,. Why did you not contact them first?
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 446
Location: USA

PostPosted: Wed Jun 29, 2016 7:53 pm
Reply with quote

I believe you are going through ISPF 3.2 option to 'A'llocate a data set and then you are getting an 'Invalid DSN Type' error.

The error is self explanatory BUT you haven't shown the options being provided while trying to allocate the data set.

.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Jun 29, 2016 8:34 pm
Reply with quote

why not ask Your colleagues to find out the standards used in Your organisation ?
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Wed Jun 29, 2016 9:52 pm
Reply with quote

This is a very basic stuff and you will have to explore more on Beginner's forum.
I am sure TS has done something like this which He should have kept Blank.
(Data set name type)

Code:
     Menu     RefList     Utilities     Help                                                 
------------------------------------------------------------------------------
SYST                              Allocate New Data Set                   Invalid DSN type
Command ===>                                                                     
                                                                      More:   - +
    Device type . . . . .                         (Generic unit or device address)    **         
Data class . . . . . .    STANDARD             (Blank for default data class)           
    Space units . . . . .    CYLINDER             (BLKS, TRKS, CYLS, KB, MB, BYTES         
                                                or RECORDS)                             
    Average record unit                           (M, K, or U)                             
    Primary quantity  . .    1                 (In above units)                         
    Secondary quantity       10                (In above units)                         
    Directory blocks  . .    0                    (Zero for sequential data set)    *           
    Record format . . . .    FB                                                              
    Record length . . . .    4200                                                            
    Block size  . . . . .    25200                                                           
    Data set name type       PS                   (LIBRARY, HFS, PDS, LARGE, BASIC,    *         
    Data set version  . :                          EXTREQ, EXTPREF or blank)               
    Num of generations  :                                                                    
    Extended Attributes                           (NO, OPT or blank)                       
    Expiration date . . .                         (YY/MM/DD, YYYY/MM/DD                   
Enter "/" to select option                   YY.DDD, YYYY.DDD in Julian form   
Back to top
View user's profile Send private message
Shaheen Shaik

New User


Joined: 05 May 2016
Posts: 13
Location: India

PostPosted: Fri Jul 08, 2016 3:47 pm
Reply with quote

Thank you all! Yeah I have done what Rohit has mentioned. When I left blank at ds name type. I didnt get error.
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 SH256/MD5 Checksum in Mainframes JCL JCL & VSAM 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top