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
 

 

Editing columns in the outrec statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Editing columns in the outrec statement
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

Site Director


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

PostPosted: Thu Jun 28, 2007 1:15 pm    Post subject:
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 Moderator


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

PostPosted: Thu Jun 28, 2007 9:10 pm    Post subject:
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:

http://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:

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am
No new posts COBOL DB2 - CALL statement - high CPU... TS70363 DB2 15 Sun Sep 11, 2016 6:07 am


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