View previous topic :: View next topic
|
Author |
Message |
himanshupant
New User
Joined: 21 Mar 2007 Posts: 46 Location: India
|
|
|
|
Hi
How do we pass a hexadecimal value through a JCL PARM to cobol module ?
I tried something like
//GO EXEC PGM=RANDOM1,PARM=X'00220A'
But its giving JCL error as
IEFC629I INCORRECT USE OF APOSTROPHE ON THE EXEC STATEMENT |
|
Back to top |
|
|
anandinmainframe
Active User
Joined: 31 May 2007 Posts: 171 Location: India
|
|
|
|
himanshupant,
Why dont you pass the Value through a file(containing the Hexadecimal value). |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
If using ISPF EDIT, you can 'HEX ON' to enter the value for the PARM on the hex data lines within single quotes.
Code: |
// PARM=' '
66444DCDD770207
110007194ED02AD
|
|
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
If you use Bill's suggestion, it would be nice to include a comment to the effect of "parm consists of a hex value" or something similar to warn others. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Something that would be easily maintainable would be to simply put the value in the parm and then change it to the corresponding hex value in code. . .
If this is a one-time requirement i'd use the hex-on edit, but if it was to be changed and run regularly, i'd do this in code. fwiw |
|
Back to top |
|
|
|