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

Convert a character field to numeric in Quikjob


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harnyun

New User


Joined: 18 Sep 2008
Posts: 2
Location: Malaysia

PostPosted: Tue Oct 07, 2008 12:29 pm
Reply with quote

Hi guys, this is my first post here. Hope that I can get some help from you all. icon_smile.gif

I have a field defined as below...

05 MC1COUNT-SEGMENT-COUNT PIC X(1).

This field is storing a counter which defines the number of occurences of 40 segments. And I want to convert this field to decimal or packed decimal in QUIKJOB.

For example, this field contains a value of X'21'. I would like it to be converted into numeric value of P'33'. I just could not get this solved. Please help.

A million thanks.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Oct 07, 2008 9:41 pm
Reply with quote

Hello,

Define the field as a 1-byte binary field instead of an X field.
Back to top
View user's profile Send private message
harnyun

New User


Joined: 18 Sep 2008
Posts: 2
Location: Malaysia

PostPosted: Wed Oct 08, 2008 6:45 am
Reply with quote

dick scherrer wrote:
Hello,

Define the field as a 1-byte binary field instead of an X field.

Yes! It works! Thanks! icon_lol.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Oct 08, 2008 7:59 am
Reply with quote

You're welcome - thanks for letting us know it is working icon_smile.gif

d
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Compare the member of two pds on las... DFSORT/ICETOOL 13
No new posts To Unstring spaces in a field COBOL Programming 3
No new posts Convert CSV to flat file. DFSORT/ICETOOL 6
No new posts convert arbitrary UTC to local (SYD) ... COBOL Programming 1
No new posts Convert Service Unit to CPU Seconds All Other Mainframe Topics 1
Search our Forums:


Back to Top