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

JCL EXEC PARM data in C


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Grant Goodale

New User


Joined: 13 Nov 2010
Posts: 67
Location: Brampton, Ontario, Canada

PostPosted: Wed Oct 18, 2023 1:21 am
Reply with quote

I am using the argc|argv variables to extract the EXEC PARM field data. However, it seems that C is doing some (unwanted) parsing. I code:

('OPT Key1(val1,val2) Key2(val3)')

and I get:

argc=4
argv=OPT
argv=Key1(val1,val2)
argv=Key2(val3)

Is anyone aware of (a) any way to stop the parsing, (b) any method another than argc|argv or (c) any way of letting spaces through?

TIA
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2140
Location: USA

PostPosted: Wed Oct 18, 2023 1:58 am
Reply with quote

Google bless you:

ARGPARSE | NOARGPARSE (C only)

It takes faster to use Google, rather than posting topics to the forum.
Back to top
View user's profile Send private message
Grant Goodale

New User


Joined: 13 Nov 2010
Posts: 67
Location: Brampton, Ontario, Canada

PostPosted: Wed Oct 18, 2023 8:32 pm
Reply with quote

Thanks. I was googling on EXEC PARM, not parse! Doh!
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts db2 vs static data COBOL Programming 1
No new posts System add a USER parm when job submi... TSO/ISPF 4
No new posts External data queue (changes?) CLIST & REXX 0
No new posts Pull data using date difference betwe... DB2 6
No new posts fast data scrambling PL/I & Assembler 10
Search our Forums:

Back to Top