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: 19244
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: 19244
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Join 2 files according to one key field. JCL & VSAM 3
Search our Forums:

Back to Top