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

To Expand PACKED DECIMAL using SORT


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

New User


Joined: 25 Oct 2007
Posts: 19
Location: hyderabad

PostPosted: Tue Jan 15, 2008 1:08 am
Reply with quote

how do i expand a packed decimal using SORT??
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: Tue Jan 15, 2008 2:10 am
Reply with quote

That depends on what you mean by "expand a packed decimal". Do you mean to make a PD field larger, e.g. expand a 3-byte PD field to a 4-byte PD field? Or do you mean how to display a PD value in readable format? Or do you mean something else?

You need to be more specific about what you're trying to do. Show an example of your input records (relevant fields only) and what you expect for output. Explain what you're trying to do in terms of the example. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input file.
Back to top
View user's profile Send private message
muhammad

New User


Joined: 25 Oct 2007
Posts: 19
Location: hyderabad

PostPosted: Tue Jan 15, 2008 2:18 am
Reply with quote

i need to display in a readable Format. the records are COMP -3 type. i need them in a readable format. The Input file has RECFM = FB ,
LRECL = 100.
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: Tue Jan 15, 2008 3:21 am
Reply with quote

Again, how you would do it depends on exactly what you want to do.

Since you gave general information, I'll give you back general information. Use one of the DFSORT methods described at:

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

or

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

If you need more specific help, give more specific information about the starting position and length of the PD field (or fields) and what you want the output field (or fields) to look like.
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top