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
 
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 Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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