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

Wanted to check if GDG has no versions


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

New User


Joined: 30 Mar 2009
Posts: 18
Location: Pune

PostPosted: Thu Jul 12, 2012 4:31 pm
Reply with quote

Hi,
one more thing I would like to add
--> LISTCAT LVL('GDG.BASE')
above step works fine and returning RC=4 but in the later step when I am unable to use that RC=4 in the cond of next step because job is checking generations before processing and as GDG has no generation, so it is throughing JCL Eror.

Please suggest.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jul 12, 2012 4:51 pm
Reply with quote

Is that your assumption just after looking at the message/s generated by the "JCL-syntax-checker-tool" at your shop? Or you actually SUBmitted the Job?

What COND have you used?
Back to top
View user's profile Send private message
knilesh23

New User


Joined: 30 Mar 2009
Posts: 18
Location: Pune

PostPosted: Thu Jul 12, 2012 5:34 pm
Reply with quote

Anuj,
One thing I would like to ask,
when we gave any of the GDG base name LISTCAT LVL('XYZ)
and if I do have another gdg base name 'XYZ.BKP' present/catlg then above list cat command is reading both and because of that job is ending with maxx=00.
Back to top
View user's profile Send private message
knilesh23

New User


Joined: 30 Mar 2009
Posts: 18
Location: Pune

PostPosted: Thu Jul 12, 2012 5:41 pm
Reply with quote

for above example below messages are getting

READY
LISTCAT LVL
GDG BASE -----
IN-CAT --
READY
END

and I created new GDG base not having bkp or same qualifing name (HLQ and other)

READY
LISTCAT LVL ('NEW.GDG.BASE')
ENTRY NEW.GDG.BASE NOT FOUND+
** VSAM CATALOG RETURN CODE IS 8
** NEW.GDG.BASE NOT LISTED
LASTCC=4
READY
END
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Jul 12, 2012 5:43 pm
Reply with quote

knilesh23 wrote:
Anuj,
One thing I would like to ask,
when we gave any of the GDG base name LISTCAT LVL('XYZ)
and if I do have another gdg base name 'XYZ.BKP' present/catlg then above list cat command is reading both and because of that job is ending with maxx=00.


And you have a GDG base with 1 qualifier?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jul 12, 2012 5:45 pm
Reply with quote

Quote:
One thing I would like to ask,
when we gave any of the GDG base name LISTCAT LVL('XYZ)
and if I do have another gdg base name 'XYZ.BKP' present/catlg then above list cat command is reading both and because of that job is ending with maxx=00.
ah, I see - you pose this question, that means -- your previous question came in without submitting the Job actually, yeah? icon_smile.gif

IDCAMS is not "intutive". (I'll refer IDCAMS with "He", had it been "she", it could have been intutive... icon_biggrin.gif). Said that, no what you assume/say is not correct. If programmer says to check about GDG Base "XYZ" using LISTCAT LVL('XYZ') -- IDCAMS look only for 'XYZ' -- nothing more nothing less!
Back to top
View user's profile Send private message
knilesh23

New User


Joined: 30 Mar 2009
Posts: 18
Location: Pune

PostPosted: Thu Jul 12, 2012 5:49 pm
Reply with quote

yes Anuj,

It will check like that...
Thanks icon_smile.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jul 12, 2012 6:49 pm
Reply with quote

You're welcome.

On the other hand, Peter has put forward a very valid point, hopefully you understand what he meant.
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts How to check whether who renamed the ... JCL & VSAM 3
No new posts No ++JCLIN, APPLY CHECK job JCL & VSAM 1
No new posts EMPTY file check scenario JCL & VSAM 6
Search our Forums:

Back to Top