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

JCL BACKUP FOR GDG & NON GDG (Formats using symbolic )


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

Active User


Joined: 29 Jun 2005
Posts: 155

PostPosted: Thu Jul 12, 2012 1:21 pm
Reply with quote

Hi ,

We are in process of automation for the output files created in monthly job for one of our real time application . So we are writing a new job to take the backup of output files as flat file whether the input is GDG / NON GDG .

We have to use naming convention in the output file for the Input files .

1. For Non GDG input file , the output file will be the same name followed by date (run date )(one of qualifier) that can be picked from job scheduler. We have no problem on it .

2. For GDG input file , we need to have output file as GDG base name followed the Qualifiers like below

for example

My GDG file is A.B.C.G0091V00

my output file A.B.C.V91.D(MMYY)

no problem about the last qualifier but for mentioning the version we stuck with that .

For that we are in process to do the below

1. Input file is of (a.b.c(+0)) and have temp dataset to have only latest version on it.
2. Copy step with symbolic parameters having Version number .

Can any one please help to provide guidelines to implement the above 2 steps . It will be really help for us. We are also trying from our end.

Thanks
Balaji K
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Jul 12, 2012 2:05 pm
Reply with quote

I suggest that you use DFdss PGM=ADRDSSU to perform the backups and that way you will only need to change the name of the output backup dataset.

But why oh why do people insist on using dates in dataset names icon_rolleyes.gif
Back to top
View user's profile Send private message
balaji81_k

Active User


Joined: 29 Jun 2005
Posts: 155

PostPosted: Thu Jul 12, 2012 2:16 pm
Reply with quote

Hi,

Utility "ADDRSPU" is not enabled in our application .

Thanks
Balaji K
Back to top
View user's profile Send private message
balaji81_k

Active User


Joined: 29 Jun 2005
Posts: 155

PostPosted: Thu Jul 12, 2012 2:18 pm
Reply with quote

Sorry its type ADRDSSU and Date we need to do as per our requirements.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


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

PostPosted: Thu Jul 12, 2012 3:32 pm
Reply with quote

expat wrote:
But why oh why do people insist on using dates in dataset names icon_rolleyes.gif

Because they can't handle the concept of the data set containing a header record that contains, among many other useful things, the processing date icon_razz.gif

Balaji, you have not told us what options are available to you. Writing such a tool in Rexx is quite trivial (although depending on volume may be impractical); it would be harder in COBOL or PL/I, although quite doable. However, I suspect that one of the "requirements" is that it must be implemented by a gaggle of junior "software engineers" that know nothing of programming or software development (as evinced by your -- very common among junior "software engineers" -- of "generation" with "version"). I suggest that your organization hire someone who knows what he's doing.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

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

You realise that for the naming convention proposed for the GDG output you need to set up a GDG base for EVERY base name? And that it would hold approximately ONE generation on each base name.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

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

A Back-up is well, a back-up -- so why this much fuss about gdg/non-gdg. And a GDG is just another QSAM file for which you already have a process in place...
Back to top
View user's profile Send private message
expat

Global Moderator


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

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

Strange, I thought the DFdss was a standard part of the SMS subsystem and comes FREE from IBM
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

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

expat wrote:
Strange, I thought the DFdss was a standard part of the SMS subsystem and comes FREE from IBM
Ditto.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Thu Jul 12, 2012 8:08 pm
Reply with quote

to all the people wasting time trying to help ...
what is that You do not understand here ?
the requirement forbids <DFDSS> and prescribes a dataset name with the date
icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif

probably time to lock the topic as per
www.ibmmainframes.com/viewtopic.php?t=20820&highlight=

Add a DATE and/or TIMESTAMP to a dataset. This Forum recommends that you consult with your Scheduling team first. Otherwise, this topic has already been posted many times. Please search for the answer that best suits your needs.
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 Data Backup suggestions DB2 5
No new posts pass data as symbolic parameter from ... CLIST & REXX 2
No new posts passing symbolic parameters through d... JCL & VSAM 3
No new posts how to list the number of backup data... JCL & VSAM 3
No new posts Issue with CR+ catalog backup job. JCL & VSAM 18
Search our Forums:

Back to Top