Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
theone1987

New User

Joined: 14 Sep 2009
Posts: 60
Location: Milan

Posted: Mon Oct 25, 2010 2:48 pm    Post subject: Conversion to editable format using SORT

Hi everyone,
i have a number in this format
 Code: ÷      E000000 1830001

i want convert in this format
 Code: 1080300000001

how can i do it whit sort?

thank you
L

Arun Raj

Moderator

Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

 Posted: Mon Oct 25, 2010 3:59 pm    Post subject: theone1987, Your input has only X'080300000001' preceded by X'E1' ie., '÷' symbol. Where did the prefix '1' in the expected output come from?
theone1987

New User

Joined: 14 Sep 2009
Posts: 60
Location: Milan

Posted: Mon Oct 25, 2010 4:06 pm    Post subject:

 Arun Raj wrote: theone1987, Where did the prefix '1' in the expected output come from?

I thought that X'E1' = 1 (otherwise how could I convert X'E1'?)
Arun Raj

Moderator

Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

Posted: Mon Oct 25, 2010 4:46 pm    Post subject:

 theone1987 wrote: I thought that X'E1' = 1 (otherwise how could I convert X'E1'?)
How did you arrive at this conclusion!! You need to be clear on what you're trying to achieve.
dick scherrer

Site Director

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

Posted: Mon Oct 25, 2010 7:24 pm    Post subject:

Hello,

 Quote: I thought that X'E1' = 1 (otherwise how could I convert X'E1'?)
Hex F1 is a one (1).

Suggest you edit a new little member and type in the alphabet (Upper case) and numbers zero thru nine. Then look at these in hex (HEX ON).

For more good info, entering the data in hex, create 16 lines with the hex values from 00-0F thru F0-FF. You will be able to see all 256 characters and the value they display on your terminal.
Frank Yaeger

DFSORT Moderator

Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

 Posted: Mon Oct 25, 2010 10:51 pm    Post subject: Theone1987, The single hexadecimal value you show is NOT any standard type of numeric. It's not PD - it's not ZD - I have no idea what it is. It's impossible to discern a pattern from one example. You need to explain the rules for converting this non-standard type of numeric before anyone can help you.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm Conversion of UTF-8 to EBCDIC muralikrishnan_new COBOL Programming 1 Tue Nov 21, 2017 5:33 pm Mainframe Blocks to Tracks conversion upendrasri JCL & VSAM 1 Sat Nov 18, 2017 10:52 am JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am Format Last Record differently from r... Learncoholic DFSORT/ICETOOL 5 Tue Oct 24, 2017 12:01 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us