View previous topic :: View next topic
|
Author |
Message |
devaswamidoss
New User
Joined: 22 Aug 2003 Posts: 4
|
|
|
|
how to pass data to each step in instream proc? |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
What kind of data? |
|
Back to top |
|
|
naveensri2005 Currently Banned New User
Joined: 22 Mar 2005 Posts: 51 Location: chennai
|
|
|
|
hi,
u pass the data to instream. i.e pass the dsn using overriding to pass the dataset name.
nav |
|
Back to top |
|
|
vrch
New User
Joined: 21 Mar 2005 Posts: 20
|
|
|
|
Hi..
I am giving a sample JCL to pass data to a step in instream procedure.
//Jobname JOB ,....
//PROC1 PROC
//STEP1 EXEC PGM=IEBGENER,TIME=2
//SYSUT1 DD DSN=aaa.bbb.ccc(MEM1),DISP=SHR
//SYSUT2 DD DSN=aaa.bbb.ccc(MEM5),DISP=SHR
//SYSPRINT DD SYSOUT=*
// PEND
//STEP2 EXEC PROC1,TIME.STEP1=4,REGION.STEP1=1M
//SYSIN DD DUMMY
In the above example we are passing region value to the step in the proc.And we are modifying time value in step1.
I think above example may help u .And if u r problem is different one or if i done wrong please let me know.
Thanks,
Vrch |
|
Back to top |
|
|
ssowjanya
New User
Joined: 29 Apr 2005 Posts: 13
|
|
|
|
Hi vrch,
//Jobname JOB ,....
//PROC1 PROC
//STEP1 EXEC PGM=IEBGENER,TIME=2
//SYSUT1 DD DSN=aaa.bbb.ccc(MEM1),DISP=SHR
//SYSUT2 DD DSN=aaa.bbb.ccc(MEM5),DISP=SHR
//SYSPRINT DD SYSOUT=*
// PEND
//STEP2 EXEC PROC1,TIME.STEP1=4,REGION.STEP1=1M
correct me here if i am wrong
//STEP2 EXEC PROC1,STEP1.TIME=4,STEP1.REGION=1M
//SYSIN DD DUMMY |
|
Back to top |
|
|
shailendra
New User
Joined: 08 Jun 2005 Posts: 10 Location: Pune
|
|
|
|
Hi Sswojanya,
You can't pass parameter like this. What virch has written is the correct way.
Shailendra |
|
Back to top |
|
|
ssowjanya
New User
Joined: 29 Apr 2005 Posts: 13
|
|
|
|
Hi shailendra,
Thank u for correcting me.
...sowjanya |
|
Back to top |
|
|
shailendra
New User
Joined: 08 Jun 2005 Posts: 10 Location: Pune
|
|
|
|
Hi Sowjanya,
You can pass parameters like 'COND, TIME, REGION' in the way what virch has mentioned. But for ovrriding dataset you need to give Stepname.DDname.
Shailendra |
|
Back to top |
|
|
ssowjanya
New User
Joined: 29 Apr 2005 Posts: 13
|
|
|
|
HI,
That's what i said before, it should be stepname.ddname. see once again what i have written previously. |
|
Back to top |
|
|
sasi.palani
New User
Joined: 01 Jun 2005 Posts: 14
|
|
|
|
hai all r correct but look here ,
//Jobname JOB ,....
//PROC1 PROC
//STEP1 EXEC PGM=PGM1,TIME=2,COND=(0,GE)
//STEP2 EXEC PGM=PGM2,REGION=4K
//SYSPRINT DD SYSOUT=*
// PEND
//STEP3 EXEC PROC1,TIME.STEP1=4,REGION.STEP2=6K ,
// COND.STEP1=(0,LT)
//STEP1.SYSIN DD DSN=A.B.C,DISP.. (i/p for step1 )
//STEP2.SYSIN DD * (i/p for step 2)
23
34
/*
//
hope this is clear
rgds,
shashi. |
|
Back to top |
|
|
durga_prasad
New User
Joined: 17 May 2005 Posts: 7 Location: Melbourne
|
|
|
|
ssowjanya wrote: |
HI,
That's what i said before, it should be stepname.ddname. see once again what i have written previously. |
Hi ssowjanya
Probably you didn't understand what Shailendra explained. Only parameters like TIME, REGION will be used like TIME.STEP1, REGION.STEP2, but when it comes to datasets step name will appear first. Hope this is clear.
Regards
Dp |
|
Back to top |
|
|
vardhan_145
New User
Joined: 21 Feb 2005 Posts: 9 Location: Chennai
|
|
|
|
Hai sasi,
Is the code correct what u had given. can i use that sysin parameter in instrem proc. just clear my doubt.
Regards,
Vardhan |
|
Back to top |
|
|
sarath_ibm
New User
Joined: 03 Aug 2005 Posts: 14 Location: hyderabad
|
|
|
|
PROBABLY I THINK SYSIN DD * CANNOT BE GIVEN. WE CAN GIVE SYSIN DD DSN= OR SPECIFY SYSIN DD DUMMY AND OVER THE
PARTICULAR PARAMETER |
|
Back to top |
|
|
GeneNorman
New User
Joined: 26 May 2006 Posts: 8 Location: Madison, Wisconsin USA
|
|
|
|
sarath_ibm is correct |
|
Back to top |
|
|
|