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
 

 

Easytrieve Data conversion

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Madhan Mohan Pendyala

New User


Joined: 18 Mar 2008
Posts: 6
Location: Hyderabad

PostPosted: Thu Mar 27, 2008 11:55 am    Post subject: Easytrieve Data conversion
Reply with quote

Like the company code in hex is x'1C'. I want in out put the company code displayed as '28' in character format.
Please suggest how can this be achieved in Eazytrieve
Back to top
View user's profile Send private message

sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 183
Location: hyderabad

PostPosted: Thu Mar 27, 2008 3:59 pm    Post subject:
Reply with quote

I think,this post need to go for SORT.Please use the below SORT card to change the co -id from hex.

Sort fileds=copy
outrec fields=(1,1,bi,edit=(tt))


1-------->Start position of the co-id
1-------->length.

Thanks
Krishy
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: Thu Mar 27, 2008 8:09 pm    Post subject:
Reply with quote

Hello,

Quote:
I think,this post need to go for SORT
No, this is an Easytrieve question.

Please post the definition of the data that contains the x'1C' as well as how you want the output - is it a data field or a report field, etc?
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Thu Mar 27, 2008 8:24 pm    Post subject:
Reply with quote

It sounds like the input field is binary (input 1 B 0)and the output field is numeric (output 1 N 0). Move the input to the output (output = input) and you are done.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Thu Mar 27, 2008 8:26 pm    Post subject: Reply to: Easytrieve Data conversion
Reply with quote

the sample could not be worse ...
1C is misleading or at least doubtful
is the byte a true binary or simply a packed 1
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: Thu Mar 27, 2008 9:51 pm    Post subject:
Reply with quote

Hello,

I expect it is a binary number, rather than a packed-decimal one, as an x'1C' = decimal 28. . . which is what TS wants to see.
Back to top
View user's profile Send private message
pranav yadav

New User


Joined: 04 Apr 2008
Posts: 9
Location: Noida, India

PostPosted: Sun Apr 06, 2008 11:11 am    Post subject:
Reply with quote

I think the input is a binary field having value X'1C'
so there are two cases for ouput fields
a) if it is a numeric field then , its very simple,
just do ouput field = input field ,

b) if the ouput is a alphanumeric field , then there would be two statements, as u cannot directly move a binary field to a alphanumeric.
so binary to numeric field and then
numeric to alphanumeric.

I hope this helps.
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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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