View previous topic :: View next topic
|
Author |
Message |
vijaysankar
New User
Joined: 27 Feb 2008 Posts: 9 Location: chennai
|
|
|
|
I want to send a GDG file name along with generation number by email. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Could you give an example of what the intended mail message would look like? I'm confused when you refer to both the GDG filename and the Generation name. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
I'm thinking that he means the base name and the GnnnVnn since the (+/-nn) would not be much use after a cycle or two..... |
|
Back to top |
|
|
vijaysankar
New User
Joined: 27 Feb 2008 Posts: 9 Location: chennai
|
|
|
|
i want to send mail as per the below format.
HI,
DAILY CYCLE COMPLETED WITH FILE NAME:
GRT.CLMS201D.S215.LR215.RAM.MIS(0)
here instead of "GRT.CLMS201D.S215.LR215.RAM.MIS(0)" i want to send mail with version name like "GRT.CLMS201D.S215.LR215.RAM.MIS.G0768V00" . if you note this instead of (0) version number will be there "G0768V00". |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
OK, so resolve the GDG to it's fully-qualified name using LISTCAT or programatically with any of the methods that have already been discussed here before. |
|
Back to top |
|
|
vijaysankar
New User
Joined: 27 Feb 2008 Posts: 9 Location: chennai
|
|
|
|
you mean in the JCL we can use LISTCAT and then print into PS file.
can you able to provide some example for this. i am not getting it clearly |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Write LISTCAT to a (temp) file, then pull out the lines you want (via a program or SORT or whatever) and write them to a file, then either concatenate the file you want to that write, or write it separately with DISP=MOD. |
|
Back to top |
|
|
vijaysankar
New User
Joined: 27 Feb 2008 Posts: 9 Location: chennai
|
|
|
|
I tryied with LISTCAT and write the output in a file. since i used
" LISTC ENT('GDG NAME') " it list out all the details so i am facing difficult for sort. if i sort it also , i am not able to get the GDG latest file, since it will in the middle of the file. Is there any option to list GDG alone using LISTCAT. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
SORT is designed to, well, sort. It happens to have other useful features, but if you need to extract the last occurrence of a string from a file (as you do here - the last name for a given GDG base), then SORT may not be your best option.
If you are a programmer, then write a program. This should be a relatively simple one.
Let us know. |
|
Back to top |
|
|
vijaysankar
New User
Joined: 27 Feb 2008 Posts: 9 Location: chennai
|
|
|
|
i will try to write a program/REXX for editing the LISTCAT file to fetch the GDG alone. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
If you use REXX, just use the LISTDSI function to resolve the dataset name allocated to a specific DD. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
vijaysankar
New User
Joined: 27 Feb 2008 Posts: 9 Location: chennai
|
|
|
|
i got the solution using EASYTRIEVE coded in the JCL itself.
1. I got all GDG version by using LISTCAT function
2. Then i code EASYTRIEVE to read the GDG latest version and wite in the PS file which i used in the Mail step.
thanks for providing the solution. |
|
Back to top |
|
|
|