Posted: Thu Sep 01, 2005 12:09 pm Post subject: Value in dataset passed as a PARM to the JCL steps
This can be best explained as an example. Suppose there is a dataset ABC.DEF.GHI.JKL has a numeric number 5000 in it.
I need to pass this value to the instream data in a JCL in more than 1 step. This insteam data is nothing but a SQL call to the Teradata. This basically means, every time we want to change this value, no code changes are required, we just EDIT the dataset.
kolusu, judging from the title of the original post, I would agree that you are right on the money. However, judging from the actual content of the post, it appears to me that the O/P wished to include the numeric value within some instream data. In which case, I wonder why the O/P doesn't just include the dataset into the instream concatenation:
//MWWZ013 JOB (PR,99,2,40,0),'XCXCXCXC',
// CLASS=6,
// MSGCLASS=X
//* *****************************************************
//* THIS JOB RUNS MULTILOAD FOR THE PRELIMINARY INVOICE L
//* *****************************************************
//DWWZ003 EXEC DWWZ003,
//* *****************************************************
//BTEQ01.SYSIN DD DSN=PM00.TERADATA.LOGON.PROD,DISP=SHR
// DD *
EXEC LDWMETRICS.BEGIN_STATS('5000');
/*
//*******************************************************
This means that that instead of hard coding the value 5000(as I have done), what I need is to pass it as a parameter. I have an option to store it in a dataset or PDS member.
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
Posted: Fri Sep 02, 2005 1:28 am Post subject:
Why does it need to be instream? Why not just use a dd statement that references your control card(s) or whatever it is you want to pass? If you try to do these bizzare gyrations to avoid the standard allocation technique of JCL, no one will ever be able to understand what you've done.
Joined: 24 Aug 2005 Posts: 3 Topics: 0 Location: Global !!!
Posted: Thu Sep 08, 2005 5:21 am Post subject:
From where you want to receive the value of that parameter, which you need to pass. If ,for example, it is in some date form and you are using jobtrac, you can even use directly some of the features of that utilitity to retrieve the value and hence pass it (I just gave an example). I think you do not want to manually edit the value of that parameter field at any point of time. If this is the case, how to do that will totally depend upon from where you are picking up that parameter value.
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