Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Passing data to each step in instream proc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
devaswamidoss

New User


Joined: 22 Aug 2003
Posts: 4

PostPosted: Mon Sep 01, 2003 11:08 am    Post subject: Passing data to each step in instream proc
Reply with quote

how to pass data to each step in instream proc?
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Sep 02, 2003 1:52 am    Post subject:
Reply with quote

What kind of data?
Back to top
View user's profile Send private message
naveensri2005
Currently Banned

New User


Joined: 22 Mar 2005
Posts: 51
Location: chennai

PostPosted: Tue May 03, 2005 4:30 pm    Post subject:
Reply with quote

hi,

u pass the data to instream. i.e pass the dsn using overriding to pass the dataset name.


nav
Back to top
View user's profile Send private message
vrch

New User


Joined: 21 Mar 2005
Posts: 20

PostPosted: Tue May 03, 2005 5:58 pm    Post subject:
Reply with quote

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

New User


Joined: 29 Apr 2005
Posts: 13

PostPosted: Tue May 17, 2005 3:53 pm    Post subject:
Reply with quote

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

New User


Joined: 08 Jun 2005
Posts: 10
Location: Pune

PostPosted: Wed Jun 08, 2005 3:49 pm    Post subject:
Reply with quote

Hi Sswojanya,
You can't pass parameter like this. What virch has written is the correct way.

Shailendra
Back to top
View user's profile Send private message
ssowjanya

New User


Joined: 29 Apr 2005
Posts: 13

PostPosted: Wed Jun 08, 2005 3:58 pm    Post subject: Re: how to pass data to each step in instream proc
Reply with quote

Hi shailendra,
Thank u for correcting me.
...sowjanya
Back to top
View user's profile Send private message
shailendra

New User


Joined: 08 Jun 2005
Posts: 10
Location: Pune

PostPosted: Thu Jun 09, 2005 4:23 pm    Post subject:
Reply with quote

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

New User


Joined: 29 Apr 2005
Posts: 13

PostPosted: Fri Jun 10, 2005 10:35 am    Post subject: Re: how to pass data to each step in instream proc
Reply with quote

HI,
That's what i said before, it should be stepname.ddname. see once again what i have written previously.
Back to top
View user's profile Send private message
sasi.palani

New User


Joined: 01 Jun 2005
Posts: 14

PostPosted: Sat Jun 11, 2005 4:15 pm    Post subject:
Reply with quote

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

New User


Joined: 17 May 2005
Posts: 7
Location: Melbourne

PostPosted: Sun Jun 12, 2005 6:03 pm    Post subject: Re: how to pass data to each step in instream proc
Reply with quote

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

New User


Joined: 21 Feb 2005
Posts: 9
Location: Chennai

PostPosted: Mon Jun 13, 2005 12:19 pm    Post subject:
Reply with quote

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

New User


Joined: 03 Aug 2005
Posts: 14
Location: hyderabad

PostPosted: Thu Aug 11, 2005 5:48 pm    Post subject: HI SASI
Reply with quote

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

New User


Joined: 26 May 2006
Posts: 8
Location: Madison, Wisconsin USA

PostPosted: Fri Jun 09, 2006 2:19 am    Post subject:
Reply with quote

sarath_ibm is correct
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us