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 Binary zeroes

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

New User


Joined: 27 Apr 2009
Posts: 26
Location: addison

PostPosted: Wed Jul 22, 2009 1:32 pm    Post subject: How to insert Binary zeroes
Reply with quote

Hi,

I need to insert binary 90 at the beginning of the record and start inserting SORTIN record from 3rd byte. Can you please help me.

I am trying below card. But its not working.
sort fields=copy
outrec=(x'5A',3:1,5)
Here 1st value in o/p should be binary 90 occupying 2 bytes.

Thanks,
Chandramouli
Back to top
View user's profile Send private message

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Jul 22, 2009 2:31 pm    Post subject:
Reply with quote

Hi,

what do you mean by its not working, you need to do a little better in explaining this.

Also X'5A' equates to 1 byte

Gerry
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 Jul 22, 2009 9:01 pm    Post subject:
Reply with quote

Chandramouli,

It's "not working" because you're using the wrong syntax. Here's the correct DFSORT syntax:

Code:

  SORT FIELDS=COPY               
  OUTREC BUILD=(X'005A',3:1,5)   


Alternatively, you can use this syntax:

Code:

  SORT FIELDS=COPY                           
  OUTREC BUILD=(+90,TO=BI,LENGTH=2,3:1,5)   
Back to top
View user's profile Send private message
chandramouliravi

New User


Joined: 27 Apr 2009
Posts: 26
Location: addison

PostPosted: Thu Jul 23, 2009 8:17 pm    Post subject:
Reply with quote

Hi Frank,

You are right. '005A' is the one i need to use. Its wokring.
Thanks for the alternate approach suggested too.
We need not worry about hex equivalent if we use second approach.

My inexperience on "How comp types are stored internally
has caused this error".


Thanks,
Chandramouli
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 Squeeze record left so that zeroes ar... Vignesh Sid SYNCSORT 5 Fri Nov 10, 2017 1:40 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 Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm

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