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
 
Change the format of a field

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

New User


Joined: 10 Aug 2006
Posts: 23

PostPosted: Fri Feb 23, 2007 11:42 am    Post subject: Change the format of a field
Reply with quote

Hi,

I need to do a change in a particular field of my FB dataset of LRECL say 10.

The file has data for only one field (amount) of LRECL 10.

That field is in Numeric edited format (eg: PIC 99.99).
the outcome should be of Implicit decimal format (eg: PIC 99V99). The output file should have same LRECL.

Sample input records:
0000206.00
0000105.00

Can you please help me out with a DFSORT or ICETOOL?
Back to top
View user's profile Send private message

guptae

Moderator


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

PostPosted: Fri Feb 23, 2007 11:52 am    Post subject:
Reply with quote

Hi there,

I think u can use this but i have not tested it since my shop does not have DFSORT
Code:
//SYSIN DD *
  OPTION COPY
  INREC OVERLAY=(1:5,10,SFF,TO=ZD,LENGTH=10)
/*
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: Fri Feb 23, 2007 9:21 pm    Post subject:
Reply with quote

Ekta,

Actually, that should be:

Code:

  INREC BUILD=(1,10,UFF,TO=ZD,LENGTH=10)


pattabiraman.baskaran,

Your post is rather confusing. You say the input field is PIC 99.99 (5 bytes) and the output field is PIC 99V99 (4 bytes), but then you show the input records with 10-byte numeric fields as PIC 9999999.99. So it's difficult to tell what you really want.
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 Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts How to change the logon screen info o... sakthikumarT TSO/ISPF 4 Fri Dec 29, 2017 6:44 pm
No new posts Change NULL indicator in UNLOAD utility Khadhar Basha DB2 2 Fri Dec 15, 2017 3:01 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm

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