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
 
ICETOOL help on converting the length of a field

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

New User


Joined: 26 May 2007
Posts: 70
Location: chennai

PostPosted: Fri Mar 04, 2011 12:17 pm    Post subject: ICETOOL help on converting the length of a field
Reply with quote

Hi,

How can i convert the length of a field using ICETOOL EDIT Mask options.

Input record:
Code:
QWE456,789ABCD
GOE456,789EFGH


I used the following statement
Code:

INREC fields=(1:1,3,4:X,5:4,7,ZD,EDIT=(TTT,TTT,TTT),15:X,16:11,4)



Actual output
Code:

QWE 456,789     ABCD
GOE 23,456,789 EFGH




Desired Output:
Code:

QWE 000,456,789 ABCD
GOE 023,456,789 EFGH


Please help. Thanks.
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: Sat Mar 05, 2011 12:33 am    Post subject:
Reply with quote

You are using DFSORT edit masks, not ICETOOL edit masks.

Your example and explanation make no sense.

For the second record, how do you expect to get from an input value of 456,789 to an output value of 023,456,789? Where does the 023 come from?

Note that 456,789 is a UFF input field, not a ZD input field.

Before anyone can help you, you need to do a much better job of showing an example of what your input actually looks like, giving the starting position, length and format of each field, showing what you want the output to look like, and explaining the rules for getting from input to output.
Back to top
View user's profile Send private message
venuhunev

New User


Joined: 26 May 2007
Posts: 70
Location: chennai

PostPosted: Sun Mar 06, 2011 8:33 am    Post subject: Reply to: ICETOOL help on converting the length of a field
Reply with quote

Thanks.
It worked. I changed ZD to UFF.
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm

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