IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Putting zeros in decimal field


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vyasricha

New User


Joined: 17 Mar 2008
Posts: 27
Location: banaglore

PostPosted: Mon Aug 29, 2011 4:03 pm
Reply with quote

Hi ,
I want to hard cord a decimal value through JCL,i am using the below card:

SORT FIELDS=COPY
OUTFIL OUTREC=(1,281,X'000000000000000C',X'000000000000000C',
X'000000000000000C')

282 - 289 , 8 bytes ,S9(13)V99
290-297 , 8 bytes ,S9(13)V99
298-305 , 8 bytes ,S9(13)VA99

but if i am using the above sysin it is giving 0 at 282,290,298 position but i want 0.00 , 0.00,0.00 .
i tried using edit

OUTFIL OUTROCK=(1,281,X'000000000000000C',8,PD,
EDIT=(STTTTTT.TT),SIGNS=(+,-,,),
but i am getting syntax error . please suggest !
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Aug 29, 2011 4:16 pm
Reply with quote

Quote:
S9(13)V99


according to the picture the decimal separator is virtual
so You have no reason to complain
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Aug 29, 2011 4:25 pm
Reply with quote

As enrico says, your V (and I'm assuming the VA is a typo, A is an alphabetic character) is an implied decimal place only.

Packed-decimals cannot contain actual decimal points, commas, currency symbols or anything. If you put them in, you'll get S0C7 when you use the fields.
Back to top
View user's profile Send private message
vyasricha

New User


Joined: 17 Mar 2008
Posts: 27
Location: banaglore

PostPosted: Mon Aug 29, 2011 5:05 pm
Reply with quote

Ok , thanks for the help !
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 29, 2011 10:16 pm
Reply with quote

Hello,

So, how have you chosen to implement?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
Search our Forums:

Back to Top