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
 

 

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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Using ICETOOL, how we can seperate th... bshkris SYNCSORT 5 Tue May 09, 2017 8:33 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm


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