Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Passing of Hexadecimal value to a COB module through PARM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
himanshupant

New User


Joined: 21 Mar 2007
Posts: 46
Location: India

PostPosted: Wed Apr 08, 2009 2:03 pm    Post subject: Passing of Hexadecimal value to a COB module through PARM
Reply with quote

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
View user's profile Send private message

anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Wed Apr 08, 2009 2:27 pm    Post subject: Reply to: Passing of Hexadecimal value to a COB module thro
Reply with quote

himanshupant,
Why dont you pass the Value through a file(containing the Hexadecimal value).
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Apr 08, 2009 6:46 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Apr 08, 2009 8:42 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Apr 09, 2009 12:37 am    Post subject:
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Getting an error from EZASOKET while ... vaibhav gs COBOL Programming 4 Thu May 17, 2018 9:21 pm
No new posts Duplicate PARM on OUTFIL sancraig16 SYNCSORT 11 Thu Apr 05, 2018 10:25 pm
No new posts java.io.FileNotFoundException - passi... Virendra Shambharkar Java & MQSeries 5 Mon Feb 26, 2018 11:41 am
No new posts SQLCODE 518 while executing DB2 module. abdulrafi DB2 8 Wed Feb 07, 2018 10:46 am
No new posts IPCONFIG SEGMENTATIONOFFLOAD parm in ... Keith Hays TSO/ISPF 0 Wed Jan 03, 2018 11:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us