View previous topic :: View next topic |
Author |
Message |
krk123 Beginner

Joined: 03 Jun 2003 Posts: 58 Topics: 19
|
Posted: Tue Mar 22, 2005 10:43 am Post subject: Passing Symbolic from the program. |
|
|
Hi,
Could someone please advise on this. I am getting input feeds which are comma sepeated and I am formatting in the program to standard layout. Each file will have a 5 byte unique identifier which is passed in the header. This program converts the comma seperated files from different sources (i.e. different 5 byte unique client Id's). After the program converts the data, we want to store the converted data in a GDG and we want the GDG to have the 5 byte unique ID as one of the qualifier. So the GDG will look something like this ..
SAMS.&uniqueid..file1.data(+)..
We wont know the unique Id until the program reads this from the header. Is there a way to pass this parameter from the program and include in the succeding steps in the job as a symbolic..
thanks a lot.
Krk123. |
|
Back to top |
|
 |
dtf Beginner
Joined: 10 Dec 2004 Posts: 110 Topics: 8 Location: Colorado USA
|
Posted: Tue Mar 22, 2005 11:06 am Post subject: |
|
|
I have not really thought this through, but you might be able to do this with a combination of dynamic allocation (to create your individual file), and then building JCL and submitting it through the internal reader in order to do your processing.
That is the only thing that comes to mind........
________
roll blunts
Last edited by dtf on Tue Feb 01, 2011 1:52 pm; edited 1 time in total |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Mar 22, 2005 11:32 am Post subject: |
|
|
Quote: |
After the program converts the data, we want to store the converted data in a GDG and we want the GDG to have the 5 byte unique ID as one of the qualifier. So the GDG will look something like this ..
SAMS.&uniqueid..file1.data(+)..
|
Krk123,
How are you planning to store as a GDG if the base does not exist ? _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
krk123 Beginner

Joined: 03 Jun 2003 Posts: 58 Topics: 19
|
Posted: Tue Mar 22, 2005 11:47 am Post subject: |
|
|
Hi Kolusu,
The GDG base will already exist. These files will be coming in daily and each file after conversion need to be stored in the +1 generation of the GDG. |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue Mar 22, 2005 11:51 am Post subject: |
|
|
It sounds as if the program will have to:
A. Check for the existence of the GDG base, and, it not found...
B. Dynamically create a new GDG base entry.
C. Then, determine all of the existing generations for the base (if any), calculate the next generation, and dynamically allocate the appropriate dataset, ultimately copying the converted data into it. |
|
Back to top |
|
 |
gharisankar Beginner

Joined: 10 Jul 2004 Posts: 19 Topics: 3 Location: C/O Platform - Mainframe
|
Posted: Tue Mar 22, 2005 11:51 am Post subject: |
|
|
Krk123,
I think, if the above sceneria is possible, we can make this as a FLAT file. We cannot change the GDG base dynamically. _________________ Regards
Hari  |
|
Back to top |
|
 |
krk123 Beginner

Joined: 03 Jun 2003 Posts: 58 Topics: 19
|
Posted: Tue Mar 22, 2005 12:00 pm Post subject: |
|
|
Hi Superk,
We dont have to check for the existance of the GDG base,The GDG base will exist. Before we setup the channel to send the Comma seperated files, we will make sure that the GDG base is setup. We just need to figure out on how to include the unique ID as one of the qualifier. Currently we are thinking of building the JCL in the job and then submit thru internal reader. Not sure if these is any other soution.
Thanks a lot . |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Mar 22, 2005 9:03 pm Post subject: |
|
|
krk123,
I am totally confused now. If you already had the GDGbase with unique identifier , then why do you need to tag to the new generation?
for ex you have a base with the following name.
Now you can simply create a new gen as follows
Code: |
HLQ.Unq-id.SLQ.TLQ.G0001V00
|
you don't have to tag the unique id to the new generation.
As superk mentioned I guess you need to dynamically create the base and then the new generation.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
krk123 Beginner

Joined: 03 Jun 2003 Posts: 58 Topics: 19
|
Posted: Mon Mar 28, 2005 4:22 pm Post subject: Here is solution we have worked out.Thanks for all the tips. |
|
|
I built a proc which just repro's data. So the proc is lookign something like this..
Please ignore the syntax..
step010 exec IDCAMS.
IN1 dd dummy
OUT 1 DD DUMMY.
SYSIN DD *
REPRO IN1 OUT1 .
I have created a job which looks something like this..
job card info..
step001 exec above proc..
step010.in1 dd dsn=file output from the program.
In the program, I read the above job ASIS write to a file and I append the folloing statement at the end of the file.
step010.out1 dd dsn=HLq.uniqueid.file(+1).
I am submitting the job thru internal reader..
Let me know if this not clear..I can elaborate..thanks for all the tips.. |
|
Back to top |
|
 |
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
|
Back to top |
|
 |
|
|