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
 
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 How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am

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