Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
No new posts Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us