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
 

 

HOW TO ADD NUMERIC FIELD TO PACKED DECIMAL IN SYNCSORT

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

New User


Joined: 02 Feb 2010
Posts: 14
Location: hyderabad

PostPosted: Thu Jul 14, 2011 2:10 pm    Post subject: HOW TO ADD NUMERIC FIELD TO PACKED DECIMAL IN SYNCSORT
Reply with quote

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
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1750
Location: UK

PostPosted: Thu Jul 14, 2011 2:12 pm    Post subject:
Reply with quote

'Not working' is not a good description. Post the error messages.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Thu Jul 14, 2011 2:13 pm    Post subject:
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Thu Jul 14, 2011 2:16 pm    Post subject: Reply to: HOW TO ADD NUMERIC FIELD TO PACKED DECIMAL IN SYNC
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Jul 14, 2011 9:42 pm    Post subject: Reply to: HOW TO ADD NUMERIC FIELD TO PACKED DECIMAL IN SYNC
Reply with quote

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. . . icon_sad.gif

I'm not sure which is worse - being that inconsiderate or that lazy icon_confused.gif
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 SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm


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