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 Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts OUTREC FILELDS FAILS WITH ICE126A 2 ... balaji81_k DFSORT/ICETOOL 8 Sat Jul 02, 2016 1:22 am


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