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

Replace exact GDG version name in JCL


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

New User


Joined: 10 Jan 2008
Posts: 29
Location: Chennai, India

PostPosted: Wed Jun 23, 2010 11:38 am
Reply with quote

Hi All,

I want to replace exact GDG version name in my JCL as below.

//EMPTYCHK EXEC PGM=FILEAID
//SYSOUT DD SYSOUT=*
//DD01 DD DSN=XXXXX.YYYYY(+0),DISP=SHR
//*
//DD01O DD DUMMY
//*
//SYSIN DD *
$$DD01 COPY OUT=1
/*
//SAMPLEPG EXEC PGM=ABC
//SYSOUT DD SYSOUT=*
//INFILE DD DSN=DSN=XXXXX.YYYYY.G0001V00,DISP=SHR <---- Full GDG name
//SYSIN DD DUMMY

This should be done through JCL. Can any one please help me?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 23, 2010 11:43 am
Reply with quote

No, I do not believe that you do want to use the exact GDG version. You probably want to use the absolute generation.

When talking about GDS it is important to use the correct terminology, as both version and generation are both valid in terms of a GDS.

It is a well known fact that only one version of a GDS may exist at any one time, however, multiple generations may exist together.

Please learn and use the correct terminology when posting, as using the wrong term can cause confusion and possibly delay a resolution to your problem

Maybe if you explain why you want to do this, then maybe someone will be better able to help.
Back to top
View user's profile Send private message
Suceender Kumar

New User


Joined: 10 Jan 2008
Posts: 29
Location: Chennai, India

PostPosted: Wed Jun 23, 2010 12:08 pm
Reply with quote

Pardon me expat. I mean absolute generation here. we are receiving files from third party where they could send 2 files at a time. Our job is a dataset trigger hence 2 instance will be in queue with the latest generation only. Previous generation is omitted when we recieve 2 files. Hence i want to repalce with absolute generation in my JCL.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 23, 2010 1:02 pm
Reply with quote

Unfortunately another reason NOT to use a GDS as a trigger file.

You could use the GDG base name to process and delete all generations in one hit with a last step to create an empty +1 generation so that subsequent processes do not fail JCL error.

Use a defined dataset name for the first trigger and a different dataset name for the second trigger.

There is the option of using a program to list the generations and to keep an audit trail of processed generations so that they are not processed twice. That will need to be developed and tested in house.

These are processes that need to be carefully analysed before being put in place. Consultations with the customer to know the possibilities that may occur. When you know what may happen you are better placed to deal with them with a minimum of manual intervention.
Back to top
View user's profile Send private message
Suceender Kumar

New User


Joined: 10 Jan 2008
Posts: 29
Location: Chennai, India

PostPosted: Wed Jun 23, 2010 1:18 pm
Reply with quote

Thanks expat !! That was helpful!
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top