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
 

 

Convert signed zone decimal number to binary using syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
TS70363

New User


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

PostPosted: Tue May 04, 2010 3:52 pm    Post subject: Convert signed zone decimal number to binary using syncsort
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: 2150
Location: At my coffee table

PostPosted: Tue May 04, 2010 7:09 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm


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