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
 

 

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 Sorting group data rajella DFSORT/ICETOOL 3 Sun Jan 22, 2017 11:32 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


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