IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Editing columns in the outrec statement


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saranyak

New User


Joined: 21 Jun 2007
Posts: 1
Location: Chennai

PostPosted: Thu Jun 28, 2007 1:10 pm
Reply with quote

Hi,

I have two columns in an input file DEPT-OBJ-I PIC X(12) and
END-OH-RETL-A PIC S9(16)V9(02) COMP.

Even though DEPT-OBJ-I is X(12) it is not in a readable format.

How do I convert these two columns to readable format using outrec statement?

Thanks,
Jo
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jun 28, 2007 1:15 pm
Reply with quote

Hello,

Look at the data in hex and post some samples here.

Depending on what is in the fields, there may be different syntax needed.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Thu Jun 28, 2007 9:10 pm
Reply with quote

Jo,

PIC X(12) is a 12-byte character field. We have no way of knowing what's in that field, so we can't tell you how to convert it. You have to show us what the data looks like.

PIC S9(16)V9(02) COMP - I think this is an 8-byte BI field. So you could use something like p,8,BI,TO=FS to convert it to a readable format.

For more information on converting numeric fields to other formats with DFSORT, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/2.4.7?DT=20060615173822

For more information on editing numeric fields with DFSORT, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/2.4.8?DT=20060615173822
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Increase the number of columns in the... IBM Tools 3
No new posts DB2 Views with Multiple SQL & Col... DB2 8
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
No new posts SORT - To repeat a string in same col... SYNCSORT 3
Search our Forums:

Back to Top