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

Convert signed zone decimal number to binary using syncsort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
TS70363

New User


Joined: 07 Apr 2010
Posts: 94
Location: Bangalore, India

PostPosted: Tue May 04, 2010 3:52 pm
Reply with quote

Hi all,

I have tried out the below jcl...
Code:

//STEP1 EXEC PGM=SYNCSORT                         
//SYSOUT    DD SYSOUT=*                           
//SORTIN DD *                                     
65535
0244                                 
000J 
0010 
/*                                                 
//SORTOUT DD DSN=TEST.SORT.OUT.PS7,DISP=SHR         
//SYSIN    DD *                                   
  OPTION COPY                                     
  OUTREC FIELDS=(1:1,05,ZD,TO=BI,LENGTH=2)
/*                                                 


This is working fine for all unsigned zoned decimal inputs.
and the output is
Code:
FF
FF
 -
.h
08
98
 -
..
00
0A
 -
.À
06
04


Also it is assuming 0 at the unit place if not specified...

How do I modify so as to get signed ZD number converted to Binary(for the third input)
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue May 04, 2010 7:09 pm
Reply with quote

SyncSort for z/OS 1.3 Programmer’s Guide wrote:
BI - Binary. Unsigned.
FI - Fixed point. Signed. (Equivalent to Signed Binary.)
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
Search our Forums:

Back to Top