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
 

 

How to insert packed decimal zero byte in OUTREC

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

New User


Joined: 07 Feb 2006
Posts: 7
Location: Hyderabad

PostPosted: Wed Sep 20, 2006 12:39 pm    Post subject: How to insert packed decimal zero byte in OUTREC
Reply with quote

Hi,

Code:

  SORT FIELDS=(5,3,CH,A,27,3,CH,A)
  OUTFIL FNAMES=SORTOUT,
   OUTREC=(1:1,3,4:5,7,11:27,7,18:47,5,23:52,11)
  RECORD TYPE=F,LENGTH=33


Please see the above outrec, but I need to insert the one packed decimal byte(value zero) at 18 and
also one packed decimal byte at 23(value zero) as below. Please advice me how to insert packed decimal zero byte.
Total output file length is 33.
Note : 19:47,5 and 24:52,9 also packed decimal.

Code:

  OUTREC=(1:1,3,4:5,7,11:27,7,18,19:47,5,23,24:52,9)


00100111110041408..............
00100122220041408..............
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Sep 20, 2006 1:03 pm    Post subject:
Reply with quote

Hi,

This will be useful:

http://ibmmainframes.com/viewtopic.php?t=13188
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 Sep 20, 2006 8:09 pm    Post subject:
Reply with quote

You can insert a 1-byte PD 0 value with DFSORT using c:X'0C' or c:+0,TO=PD,LENGTH=1

Note that your OUTREC parameters have an overlap error that you need to fix:

19:47,5,23:

19:47,5 uses positions 19-23 so you can't start the next field at 23.
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 READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm


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