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
 

 

about parm parameter in jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
kumaresh.M

New User


Joined: 17 Feb 2006
Posts: 64
Location: Bangalore

PostPosted: Mon Feb 20, 2006 5:15 pm    Post subject: about parm parameter in jcl
Reply with quote

hi friends,
We are using parm parameter to pass values to the application program during runtime.But we have to send only 100 Bytes,
then how i would send the datas more than 100 bytes to application program during runtime to my application program using parm parameter
is there any other way is there? (except sysin )
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Mon Feb 20, 2006 7:44 pm    Post subject: Re: about parm parameter in jcl
Reply with quote

Quote:
then how i would send the datas more than 100 bytes to application program during runtime to my application program using parm parameter

Its not possible, PARM parameter can't carry more than 100 Bytes.

Regards,

Priyesh.
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Mon Feb 20, 2006 8:05 pm    Post subject: Re: about parm parameter in jcl
Reply with quote

Hi,
Even though u gave more than 100 chars it will trucate the chars after 100th char and it will pass the first 100 chars only.
Back to top
View user's profile Send private message
sonu_winks

New User


Joined: 23 Nov 2005
Posts: 23

PostPosted: Tue Feb 21, 2006 2:05 pm    Post subject:
Reply with quote

i think SYSIN can carry more values..even it has got some limitations...other way is to put u'r input in a file and read it ..
Back to top
View user's profile Send private message
papun123123

New User


Joined: 27 Mar 2006
Posts: 2

PostPosted: Wed Mar 29, 2006 10:22 am    Post subject: How to pass more than 100byte
Reply with quote

hi kumaresh.M,
you are write u can pass only 100 byte to the application program,
and you can pass upto 2GB through SYSIN.
Do u have any quiery plz let me know

icon_biggrin.gif
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 Mar 29, 2006 7:21 pm    Post subject: Re: about parm parameter in jcl
Reply with quote

I don't think anyone here is thinking this through enough. I'm not buying that 100 bytes is the limit that a COBOL program can accept from a parameter via the LINKAGE SECTION. Yes, the limit of a JCL PARM= statement is 100 bytes - that's a documented fact. However, it seems to me that that's not the only way to pass parameter values to a program.

So, to test this all out, I whipped up a small program with a parm of 255-bytes. It compiled OK, so obviously that is an acceptable value. Next, I had to figure out a way to get around the 100-byte JCL limit, so I used the TSO CALL command instead:

Code:

/* REXX */
parm = Copies("*",255)
"CALL 'MY.LOADLIB(MYPROG)' '"parm"'"

This process actually truncates the parm with the message:
"IKJ56003I PARM FIELD TRUNCATED TO 100 CHARACTERS"

so that wouldn't work either. So, I tried an ISPF SELECT PGM call:
Code:

/* REXX */                                         
"ISPEXEC LIBDEF ISPLLIB DATASET ID('MY.LOADLIB')"                   
parm = Copies("*",255)                         
"ISPEXEC SELECT PGM(MYPROG) PARM('"parm"')"     

Guess what? This works just fine. So far, I've tested with a parm value up to 4K (4096 bytes) without a problem.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


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