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: 10211
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 Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


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