Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1188
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 OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us