View previous topic :: View next topic
|
Author |
Message |
Vijay_ml
New User
Joined: 20 Mar 2007 Posts: 7 Location: India
|
|
|
|
I have cataloged proc.And I want pass 200 character to the program.Can you please suggest me how I can pass.
For my knowledge i know two ways to pass a data for the program.
1.By using parm parameter.
2.By sysin dd *(But we can't use sysin dd * in the proc). |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
PARM is limited to 100 characters.
No, you can't use SYSIN DD * in the PROC, so you define SYSIN DD DUMMY and override it in the execution JCL. |
|
Back to top |
|
|
Vijay_ml
New User
Joined: 20 Mar 2007 Posts: 7 Location: India
|
|
|
|
Ya,I know the two ways won't work.Can u please suggest me any other way. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I've just told you how you could use the SYSIN option. |
|
Back to top |
|
|
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
|
|
Hi,
As Expat as said used the SYSIN DD DUMMY in the proc and while executing the proc overide the Dummy with SYSIN data.
I think this might clear you doubt.
Cheers
Ashwin |
|
Back to top |
|
|
Vijay_ml
New User
Joined: 20 Mar 2007 Posts: 7 Location: India
|
|
|
|
Thank you Verymuch |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Do you have it working?
If you post your proc and execute jcl, we can offer suggestions. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Of course, if you ran the program in a TSO session rather than in the JCL itself, you could pass a parameter that's pretty much as big as TSO will support:
//SYSTSIN DD *
CALL 'loadlib(program)' 'a long parm string of 200 bytes'
/*
Also, I wonder if the O/P will use a 200-byte LRECL for the JCL PDS so that the string can be coded on one line. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Not a bad thought from superk there,
using a VB 251 dataset for the REXX you could code 200 characters for the PARM.
//SYSTSIN DD *
EXEC 'my REXX lib (my rexx)'
And the REXX could then contain
CALL 'loadlib(program)' 'a long parm string of 200 bytes' |
|
Back to top |
|
|
|