Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Convert a character field to numeric in Quikjob

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Convert a character field to numeric in Quikjob
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

Site Director


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

PostPosted: Tue Oct 07, 2008 9:41 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Oct 08, 2008 7:59 am    Post subject: Reply to: Convert a character field to numeric in Quikjob
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us