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 Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm


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