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: 94
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 Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts how to mask the phone number kumarinfy DB2 4 Mon Apr 03, 2017 5:23 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am


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