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
 

 

Replace exact GDG version name in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Replace exact GDG version name in JCL
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 23, 2010 11:43 am    Post subject:
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    Post subject: Reply to: Replace exact GDG version name in JCL
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jun 23, 2010 1:02 pm    Post subject:
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    Post subject: Reply to: Replace exact GDG version name in JCL
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    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 COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts Replace function abdulrafi COBOL Programming 13 Mon Sep 12, 2016 10:12 am
No new posts Is there a time Version of DATEDIFF ? Bill Woodger DFSORT/ICETOOL 1 Wed Aug 17, 2016 7:06 pm


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