IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Argument to MAIN procedure is not CHARACTER VARYING.


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Mon Nov 26, 2007 8:35 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Jan 02, 2008 7:48 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts String has hex character need to conv... COBOL Programming 3
No new posts Output LREC based on specific character DFSORT/ICETOOL 22
Search our Forums:

Back to Top