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

Moving PACKED decimal values to a record using DFSORT


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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 Developer


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

PostPosted: Wed Mar 22, 2006 9:16 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top