MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GDG's

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
saravanan80
Beginner


Joined: 25 Dec 2006
Posts: 14
Topics: 6

PostPosted: Tue Mar 06, 2007 9:07 am    Post subject: GDG's Reply with quote

Step 1 - Im generating the previous version with data (-1)
Step 2 - I'm generating the current verion with data (0)
Step 3 - I'm generating the future version (+1)
and I want to copy the version's (-1,0) to the future version

what are all the ways can I do that?

Do I need to sort the data and copy then using the simple copy using SYSIN ?

Please suggest.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Tue Mar 06, 2007 9:26 am    Post subject: Reply with quote

There are probably too many ways. Why do you want to know multiple ways? (Homework? If so do your homework yourself!).

I do not know if you need to sort the data first as
1) I do not know your data
2) I do not know how it is to be used in the future
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Mar 06, 2007 9:31 am    Post subject: Reply with quote

Assuming you want to do all of this in 1 single job.

Code:

STEP1  you will code gdg(+1)
step2  you will code gdg(+2)
step3  concatenate
       gdg(+1)
       gdg(+2)

and create gdg(+3)


Remember if any of the steps abend then you need to change the JCL for gdg numbers approriately


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Thu Mar 08, 2007 2:34 pm    Post subject: Reply with quote

Kolusu,
Is that true that, to refer back to the GDG that is created in previous step should be referred as +1.

Is there any exception for this.

As in my JCL, my last step is an NDM step and when I used +1 to refer to the GDG that is created in previous step...it is actually picking up future GDG. Eg. the prev step creates GDG which has the generation as 2, where as in NDM step it is looking for 3. I coded +0 and now its working fine.

Anyone faced this type of problem??
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Mar 08, 2007 2:46 pm    Post subject: Reply with quote

vak255,

what you described should not happen. Post the JCL.

If you are creating multiple GDG versions in the same JCl then you need to refer them approrirately.

For ex: if your job has 5 steps

Code:

1. step 1 creates gen (+1)
2. Step 2 creates gen (+2)
3. step 3 creates gen (+3)
4. step 4 reads the +1 gen
5. Step 5 reads the +3 gen


In this case

The output from step 4 will be contents from gdg created in step 1
The output from step 5 will be contents from gdg created in step 3

Now assume that you abended after running step 3. You need to change step 4 JCl to read (-2) gen and step 5 to read (0) gen.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Thu Mar 08, 2007 8:07 pm    Post subject: Reply with quote

Thanks kolusu, I will check and will let you know.
I am referring to the same GDG which is created in step 1 in all the below steps.
all the steps are working fine except the ndm step, i believe when i trigger NDM its actually signing on to another server and i believe thats creating the problem
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Fri Mar 09, 2007 10:21 am    Post subject: Reply with quote

If the +1 generation is not created in a JCL DD statement but by some non-JCL process (NDM, FTP, etc.), it would be (0) in the next step. The normal JCL rules don't apply.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group