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
 

 

Moving PACKED decimal values to a record using DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
raveendra_ibm
Currently Banned

New User


Joined: 07 Jan 2006
Posts: 31

PostPosted: Wed Mar 22, 2006 5:22 pm    Post subject: Moving PACKED decimal values to a record using DFSORT
Reply with quote

Hi All,

I just wanted to know that can we move packed decimal values to a collection of records using DFSORT.

Here are the details :

Record contains 1 - 50 alpha numeric and 51 - 53 contains Packed decimal.

Now I need to copy these records with 1-50 as it is and 51 -53 packed initialized to zero.

Could you please help me out.

Thanks and Regards,
Raveendra.
Back to top
View user's profile Send private message

rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Mar 22, 2006 5:28 pm    Post subject:
Reply with quote

Try this

Code:

//SYSIN      DD *
   SORT FIELDS=COPY
   OUTREC FIELDS=(1,50,51:X'00000C')


Please let me know if any problem arises.

Regards
jai
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: Wed Mar 22, 2006 9:16 pm    Post subject:
Reply with quote

Alternatively, you can use this DFSORT OUTREC statement:

Code:

  OUTREC OVERLAY=(51:+0,TO=PD,LENGTH=3)
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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts Overlaying one set of charater values... Kevin Lindsley SYNCSORT 7 Sat Nov 05, 2016 3:21 am
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am


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