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
 
Need Postive Sign in Data Format Conversion in SyncsortV1.2.

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

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Thu Aug 13, 2009 7:06 pm    Post subject: Need Postive Sign in Data Format Conversion in SyncsortV1.2.
Reply with quote

Hi,
I am converting a whole number to a PD data Format. When the input number is negative , there is a leading negative sign the output (PD format) whereas there is no positive sign appearing when the input is positive number.

Eg:-
Case 1:
Input : -00000100000000000
Actual output* : -100.000000000
Expected output* : -100.000000000


Case2:
Input : +00000100000000000
Actual output* : 100.000000000
Expected output* : +100.000000000

The case 1 is acheived with the below CNTLCARD but couldnt acheive the case 2.

The CNTLCARD used is given below,
Code:

SORT FIELDS=COPY
OUTREC FIELDS=(1:1,18,FS,PD,LENGTH=10)


*The output are seen thru INSYNC and the data type is PS(9,9) (packed decimal).[/code][/quote]
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Aug 13, 2009 7:51 pm    Post subject:
Reply with quote

I don't think your problem is with SyncsortV1.2, PD fields always have a sign, your problem is with the way INSYNC is displaying the value of a positive field. Most products that format and display data don't show a + for positive fields. Look in the INSYNC documentation for the solution to your "problem".
Back to top
View user's profile Send private message
Raghuraman_New

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Thu Aug 13, 2009 8:05 pm    Post subject:
Reply with quote

Hi ,
I am afraid that it might not be a problem with INSYNC . Because when i browsed the ps file and with HEX ON in the PS file the value of

100.000000000 in the PD format is represented as (pls see F in the last bit)
Code:

0000000000
000100000F


+100.000000000 in the PD format is represented as (pls see C in the last bit)


Code:

0000000000
000100000C


So if i am right it is something to do with the way data is converted to PD fromat .
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 Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Conversion of UTF-8 to EBCDIC muralikrishnan_new COBOL Programming 1 Tue Nov 21, 2017 5:33 pm
No new posts Mainframe Blocks to Tracks conversion upendrasri JCL & VSAM 1 Sat Nov 18, 2017 10:52 am
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm

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