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
 

 

About non-vsam question

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
zhang xiaodou

New User


Joined: 22 Oct 2012
Posts: 4
Location: China

PostPosted: Fri Nov 02, 2012 9:06 am    Post subject: About non-vsam question
Reply with quote

hello everyone,

I have a question about NON-VSAM, I have defined a non-vsam dataset using :

==MSG> -Warning- The UNDO command is not available until you change
==MSG> your edit profile using the command RECOVERY ON.
000001 //LISTCAT JOB 1,NOTIFY=IBMUSER
000002 //STEP1 EXEC PGM=IDCAMS
000003 //SYSPRINT DD SYSOUT=*
000004 //SYSIN DD *
000005 DEFINE NONVSAM -
000006 ( NAME(WENTEST1.NONVSAMP.EXAM1) -
000007 DEVICETYPE(3390) -
000008 VOLUMES(W4WAS1) )
000009 /*

When I find this dataset in DList:
Menu Options View Utilities Compilers Help
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
DSLIST - Data Sets Matching WENTEST1 Data set not found

Command - Enter "/" to select action Message Volume
-------------------------------------------------------------------------------
WENTEST1 *ALIAS
WENTEST1.A *VSAM*
WENTEST1.A.DATA W4WAS1
WENTEST1.A.INDEX W4WAS1
V WENTEST1.NONVSAMP.EXAM1 W4WAS1
WENTEST1.NONVSAMP.EXAM1.A OS39M1
***************************** End of Data Set list ****************************

It shows "Data set not found"

Do I need also to allocate dataset for this non-vsam dataset? And How can i connect to this non-vsam dataset?
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1715
Location: UK

PostPosted: Fri Nov 02, 2012 2:19 pm    Post subject:
Reply with quote

What do the messages from your IDCAMS allocate say? Why use IDCAMS? Why not IEFBR14 or IEBGENER or ISPF option 3.2?
Back to top
View user's profile Send private message
zhang xiaodou

New User


Joined: 22 Oct 2012
Posts: 4
Location: China

PostPosted: Fri Nov 02, 2012 2:33 pm    Post subject:
Reply with quote

Nic Clouston wrote:
What do the messages from your IDCAMS allocate say? Why use IDCAMS? Why not IEFBR14 or IEBGENER or ISPF option 3.2?



hi Nic,

tks for your message.

Firstly, I use define non-vsam dataset just for testing. I read the redbook about the IDCAMS, so I wanted to try.

secondly, I find DEFINE NONVSAM, this command will define a catalog entry for a non-VSAM data set. And this command will not allocate the space on a volume, this command will define a non-VSAM SMS-managed data set that is not a collection of objects, so my really problem is that how can I use Allocate command to allocate a dataset for this entry...because it is just an entry..
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Nov 02, 2012 2:49 pm    Post subject: Reply to: About non-vsam question
Reply with quote

given Your very basic level of experience You might be more at ease
here
http://ibmmainframeforum.com/index.php
the beginners forum

it might help to download and read
the IBM REDBOOKS

here
Introduction to the New Mainframe: z/OS Basics
http://www.redbooks.ibm.com/abstracts/sg246366.html

and the series
ABCs of z/OS System Programming
( link to the first of it )
http://www.redbooks.ibm.com/abstracts/sg246981.html
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Fri Nov 02, 2012 11:21 pm    Post subject:
Reply with quote

Xiaodou ér, it is best if, when posting code, data (especially when it contains non-displayable characters), cut-and-paste from an emulator display, or anything where alignment may be significant, to enclose it in Code tags, thus:
Code:
Menu Options View Utilities Compilers Help
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
DSLIST - Data Sets Matching WENTEST1 Data set not found

Command - Enter "/" to select action Message Volume
-------------------------------------------------------------------------------
WENTEST1 *ALIAS
WENTEST1.A *VSAM*
WENTEST1.A.DATA W4WAS1
WENTEST1.A.INDEX W4WAS1
V WENTEST1.NONVSAMP.EXAM1 W4WAS1
WENTEST1.NONVSAMP.EXAM1.A OS39M1
***************************** End of Data Set list ****************************


Alt-C or the Code tag button above the reply edit box will place an open tag at the cursor position.

Your reply to Mr. Clouston was non-responsive. Using your system management tool (SDSF, IOF, (E)JES, etc.), find the sysout of the LISTCAT job; post the message log, the system messages, and the SYSPRINT from STEP1 here, in Code tags.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1715
Location: UK

PostPosted: Sat Nov 03, 2012 1:50 am    Post subject:
Reply with quote

Mr Clouston here - generally known as Nic or 'hey you'. I am actually satisfied by the reply as it indicates that the TS is at least experimenting and has, I believe, discerned the answer as to why no dataset was actually created. My problem that arises from this is - why was the catalog entry allowed when there was no dataset of that name on the specified volume? Probably some good reasons for it but in my expreience one only catalogs an existing dataset - and one does not do that very often since the arrival of SMS - perhaps tapes from an external source.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Sat Nov 03, 2012 2:28 am    Post subject:
Reply with quote

Nic Clouston wrote:
Mr Clouston here - generally known as Nic or 'hey you'.

I try to be more polite than that, as an example to my kōhai. The flip side, of course, is that I make people address me as "Akatsukami-sama" (although I at least don't make them kneel and say, "Xiăorén" icon_biggrin.gif)
Quote:
I am actually satisfied by the reply as it indicates that the TS is at least experimenting and has, I believe, discerned the answer as to why no dataset was actually created.

If you're satisfied on this matter, I'm happy to drop it.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Nov 03, 2012 8:49 am    Post subject:
Reply with quote

Hello,

Quote:
My problem that arises from this is - why was the catalog entry allowed when there was no dataset of that name on the specified volume
Once upon a time it was posible to have a DISP=(,CATLG,CATLG), a UNIT=whatever, and a VOLSER=, in an IEFBR14 step and a catalog entry would be made and no file placed in the vtoc (because the dataset was not opened). Most often this was a biginner's mistake, but sometimes someone more senior did this intentially.

I've not seen this in any jcl for a very long time and believe that SMS actually does create an empty dataset (rather than only a catalog entry) preventing all sorts of adventures.
Back to top
View user's profile Send private message
zhang xiaodou

New User


Joined: 22 Oct 2012
Posts: 4
Location: China

PostPosted: Mon Nov 05, 2012 8:18 am    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

Quote:
My problem that arises from this is - why was the catalog entry allowed when there was no dataset of that name on the specified volume
Once upon a time it was posible to have a DISP=(,CATLG,CATLG), a UNIT=whatever, and a VOLSER=, in an IEFBR14 step and a catalog entry would be made and no file placed in the vtoc (because the dataset was not opened). Most often this was a biginner's mistake, but sometimes someone more senior did this intentially.

I've not seen this in any jcl for a very long time and believe that SMS actually does create an empty dataset (rather than only a catalog entry) preventing all sorts of adventures.



Hi, tks very much! Do you mean that I define non-VSAM dataset use ICDAMS, like

DEFINE NONVSAM -
( NAME(WENTEST1.NONVSAMP.EXAM1) -
DEVICETYPE(3390) -
VOLUMES(W4WAS1) )


Actually, it just define an entry, and no dataset in it. If I want to define a non-vsam dataset, not just an entry, I should use JCL DD?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Nov 05, 2012 8:32 am    Post subject:
Reply with quote

Hello,

Suggest you speak with your storage management people and have them explain the preferred way to do this on your system.
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Mon Nov 05, 2012 9:04 pm    Post subject:
Reply with quote

The define statement as indicated requests no SPACE value which means it's probably being allocated with space provided either by default values in teh SYS1.PARMLIB(ALLOC*) member, or possibly by a default DATACLAS assigned to it, otherwise I would expect it to fail the define.

The LISTCAT output you show has this entry which looks like the one you say is not found. The W4WAS1 looks like the volsers it's allocated to.
i.e.
V WENTEST1.NONVSAMP.EXAM1 W4WAS1
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 BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts VSAM define for large file jerryte JCL & VSAM 9 Wed Oct 05, 2016 1:51 am
No new posts CICS VSAM RLS READ akodakka CICS 3 Tue Oct 04, 2016 3:09 pm
No new posts Fault Analyzer - listings question. egrove IBM Tools 4 Thu Aug 11, 2016 5:31 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm


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