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: 182
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: 10232
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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