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 Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts what is meaning of the number in dcl Martylin PL/I & Assembler 2 Thu Mar 09, 2017 7:18 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm
No new posts Convert current to hex value gopurs DFSORT/ICETOOL 4 Wed Feb 15, 2017 5:40 am


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