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

How to insert packed decimal zero byte in OUTREC


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 1208
Location: Bangalore,India

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

Hi,

This will be useful:

ibmmainframes.com/viewtopic.php?t=13188
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 Sep 20, 2006 8:09 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
Search our Forums:

Back to Top