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

Passing 200 Characters to the Program from JCL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vijay_ml

New User


Joined: 20 Mar 2007
Posts: 7
Location: India

PostPosted: Tue Apr 10, 2007 1:54 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Apr 10, 2007 2:21 pm
Reply with quote

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

New User


Joined: 20 Mar 2007
Posts: 7
Location: India

PostPosted: Tue Apr 10, 2007 3:53 pm
Reply with quote

Ya,I know the two ways won't work.Can u please suggest me any other way.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Apr 10, 2007 3:55 pm
Reply with quote

I've just told you how you could use the SYSIN option.
Back to top
View user's profile Send private message
ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Tue Apr 10, 2007 4:00 pm
Reply with quote

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

New User


Joined: 20 Mar 2007
Posts: 7
Location: India

PostPosted: Tue Apr 10, 2007 4:15 pm
Reply with quote

Thank you Verymuch
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Apr 11, 2007 12:07 am
Reply with quote

Hello,

Do you have it working?

If you post your proc and execute jcl, we can offer suggestions.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Apr 11, 2007 12:18 am
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Apr 11, 2007 1:13 pm
Reply with quote

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
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top