View previous topic :: View next topic
|
Author |
Message |
abhilash g s
New User
Joined: 27 Apr 2007 Posts: 37 Location: bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
In addition to that text, you should also see a message number. Look up that message number in the documentation. |
|
Back to top |
|
|
cheryala
New User
Joined: 20 Mar 2006 Posts: 46
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
Quote: |
Any fix, for this??
Thanks in Advance. |
Read/meditate on the PL/1 programmers guide/reference and fix Your behaviour
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 |
|
|
|