Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Converting PD fields with ICEMAN

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Michaelod
Warnings : 1

New User


Joined: 02 Sep 2008
Posts: 49
Location: Edinburgh

PostPosted: Wed Sep 03, 2008 4:06 pm    Post subject: Converting PD fields with ICEMAN
Reply with quote

I have an S9(13)v9(2) comp-3 field in an input record that I wish to map to an S9(14)v9(2) field in an ouptut record.

I have tried the following to no avail:

158:179,8,PD,EDIT=(TTTTTTTTTTTTTTTS),SIGNS=(+,-),LENGTH=16,

Anyone have any ideas?

Thanks
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1191
Location: Bangalore,India

PostPosted: Wed Sep 03, 2008 5:19 pm    Post subject:
Reply with quote

Hello Michaelod,

Would u Please provide us sample i/p & o/p ?
Back to top
View user's profile Send private message
Michaelod
Warnings : 1

New User


Joined: 02 Sep 2008
Posts: 49
Location: Edinburgh

PostPosted: Wed Sep 03, 2008 6:06 pm    Post subject:
Reply with quote

guptae wrote:
Hello Michaelod,

Would u Please provide us sample i/p & o/p ?


Hi,

Quote:
From position 179 in the Input record the data is as follows (hex):

00000350
0000010D

When I execute the following step:

158:179,8,PD,EDIT=(TTTTTTTTTTTTTTTS),SIGNS=(+,-),LENGTH=16

I get the following in the output file:

From position 158

000000000031500


For some reason there is no sign.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Sep 03, 2008 9:29 pm    Post subject:
Reply with quote

Quote:
For some reason there is no sign.


The reason is that you specified a trailing sign in the EDIT pattern, but you didn't specify trailing signs in SIGNS. You can use this:

158:179,8,PD,EDIT=(TTTTTTTTTTTTTTTS),SIGNS=(,,+,-),

The syntax for SIGNS is (lp,ln,tp,tn) where:

lp=leading positive sign
ln=leading negative sign
tp=trailing positive sign
tn=trailing negative sign

SIGNS=(+,-) gives the leading signs, not the trailing signs.
SIGNS=(,,+,-) gives the trailing signs.

Note that you don't need LENGTH=16 since the length is taken from the EDIT pattern by default.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us