IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Passing data to each step in instream proc


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
Search our Forums:

Back to Top