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: 1722
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: 7251

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: 10210
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 INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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