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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm

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