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 200 Characters to the Program from JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Passing 200 Characters to the Program from JCL
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: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 10, 2007 2:21 pm    Post subject:
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    Post subject: Re: Passing 200 Characters to the Program from JCL
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: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 10, 2007 3:55 pm    Post subject:
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    Post subject:
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    Post subject: Re: Passing 200 Characters to the Program from JCL
Reply with quote

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

Site Director


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

PostPosted: Wed Apr 11, 2007 12:07 am    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Apr 11, 2007 12:18 am    Post subject: Re: Passing 200 Characters to the Program from JCL
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: 8593
Location: Back in jolly old England

PostPosted: Wed Apr 11, 2007 1:13 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 3 Mon May 29, 2017 8:10 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm


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