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 

Passing Symbolic from the program.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
krk123
Beginner


Joined: 03 Jun 2003
Posts: 58
Topics: 19

PostPosted: Tue Mar 22, 2005 10:43 am    Post subject: Passing Symbolic from the program. Reply with quote

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
View user's profile Send private message
dtf
Beginner


Joined: 10 Dec 2004
Posts: 110
Topics: 8
Location: Colorado USA

PostPosted: Tue Mar 22, 2005 11:06 am    Post subject: Reply with quote

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
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 22, 2005 11:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
krk123
Beginner


Joined: 03 Jun 2003
Posts: 58
Topics: 19

PostPosted: Tue Mar 22, 2005 11:47 am    Post subject: Reply with quote

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
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Mar 22, 2005 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
gharisankar
Beginner


Joined: 10 Jul 2004
Posts: 19
Topics: 3
Location: C/O Platform - Mainframe

PostPosted: Tue Mar 22, 2005 11:51 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
krk123
Beginner


Joined: 03 Jun 2003
Posts: 58
Topics: 19

PostPosted: Tue Mar 22, 2005 12:00 pm    Post subject: Reply with quote

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
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 22, 2005 9:03 pm    Post subject: Reply with quote

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.
Code:

HLQ.Unq-id.SLQ.TLQ 


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
View user's profile Send private message Send e-mail Visit poster's website
krk123
Beginner


Joined: 03 Jun 2003
Posts: 58
Topics: 19

PostPosted: Mon Mar 28, 2005 4:22 pm    Post subject: Here is solution we have worked out.Thanks for all the tips. Reply with quote

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
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue Mar 29, 2005 9:06 am    Post subject: Reply with quote

krk123,
Read the following posts on dynamic allocation. Do your DD and decide what works best with your design. Requirements like this always has limitations. Look for the pros/cons of using PUTENV.

Try PUTENV. IKJTSOEV/IKJEFTSR, BYXBPWDN etc. You can have generic perform paragarphs, which can be invoked for every change in criteria. Then again, we are assuming that the GDG Base exists. Hope it helps.

http://www.mvsforums.com/helpboards/viewtopic.php?t=949&highlight=putenv
http://www.mvsforums.com/helpboards/viewtopic.php?t=1905&highlight=putenv
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 -> Job Control Language(JCL) 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