Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us