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
 

 

Argument to MAIN procedure is not CHARACTER VARYING.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
abhilash g s

New User


Joined: 27 Apr 2007
Posts: 37
Location: bangalore

PostPosted: Mon Nov 26, 2007 12:00 pm    Post subject: Argument to MAIN procedure is not CHARACTER VARYING.
Reply with quote

Hi,
when i try to compile my PL/I-IMS program, i am getting thefollowing warnig:-"Argument to MAIN procedure is not CHARACTER VARYING."

Any fix, for this??
Thanks in Advance.

Thank you,
___________
Abhilash G S
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: Mon Nov 26, 2007 8:35 pm    Post subject:
Reply with quote

Hello,

In addition to that text, you should also see a message number. Look up that message number in the documentation.
Back to top
View user's profile Send private message
cheryala

New User


Joined: 20 Mar 2006
Posts: 46

PostPosted: Wed Jan 02, 2008 6:06 pm    Post subject: Reply to: Argument to MAIN procedure is not CHARACTER VARYIN
Reply with quote

HI

Quote:
Argument to MAIN procedure is not CHARACTER VARYING."


you can use

pgmname: proc (parm1,parm2) options(main NOEXECOPT);

if you include NOEXECOPT in ur main statement, you can get rid of the message that you are getting..

Regards,
Cheryala
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Wed Jan 02, 2008 7:48 pm    Post subject: Reply to: Argument to MAIN procedure is not CHARACTER VARYIN
Reply with quote

Quote:
Any fix, for this??
Thanks in Advance.


Read/meditate on the PL/1 programmers guide/reference and fix Your behaviour icon_biggrin.gif

the field where PL/I stores/moves the parms passed thru jcl to a main
must be defined as "CHAR VARYING" , no other choice

the "NOEXECOPS" parameter in nthe main procedure has a different meaning...
when passing parms to a pl/i main the parm field is made up of two parts,
the first one aimed at the runtime options ( heap/isa sizes for example)
the second part aimed to the user program
the two parts are separated by a "/"

NOEXECOPS means that You are not allowed to change the run time options
and You can pass parameters without the "/"
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts the use of 'B3'x character in a panel Pedro TSO/ISPF 1 Thu Feb 16, 2017 3:09 am
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 6 Sun Nov 06, 2016 8:11 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am


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