View previous topic :: View next topic
|
Author |
Message |
elijarajesh.mf Warnings : 1 New User
Joined: 02 Feb 2010 Posts: 14 Location: hyderabad
|
|
|
|
Hi,
I want to add numeric digit 5 with packed decimal number. Below is the syntax I am trying. But it is not working
OUTREC FIELDS=(X'00500C',PD,ADD,39,3,PD).
Here 39,3 is my input file postion with packed decimal data. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
'Not working' is not a good description. Post the error messages. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Try (39,3,PD,ADD,5) or something like that.
If your field has two decimal places (from your existing code), make the ADD 500. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
which translated to human understandable language
means that You want to add 500 to the content of input at 39,3 and store it into the first position of the output record, isn' t it ?
what happened when You searched the forums, there are zillions of examples on how to add a fixed value to a field |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Well, if TS will only post "it didn't work", how can they possibly search the forum for existing solutions or look in the manual. . .
I'm not sure which is worse - being that inconsiderate or that lazy |
|
Back to top |
|
|
|