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: 2290
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 All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Structured Data and Nested Loops via ... COBOL Programming 0
No new posts Alternate key data extracttion COBOL Programming 13
No new posts db2 vs static data COBOL Programming 1
Search our Forums:


Back to Top