IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Numeric Edited to Comp-3


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amitkumar_sindhi

New User


Joined: 20 May 2005
Posts: 8

PostPosted: Sat May 28, 2005 4:58 pm
Reply with quote

I have in input file, a variable with numeric edited format, using sort i want that the same variable is copied to output file, but , instead of numeric edited the format should be COMP-3.In pointers to this regard would be really helpful.

Regards,
Amit
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Sat May 28, 2005 9:44 pm
Reply with quote

Here's a link to a general discussion about doing numeric conversion with DFSORT:

www.ibm.com/servers/storage/support/software/sort/mvs/beyond_sorting/online/srtmboft.html#ocv

If you need something more specific, you have to supply more details.

COMP-3 is PD format. I don't know what you mean by "numeric edited format" so you need to show me an example of what the "numeric edited format" looks like before I can show you how to do what you want with DFSORT. Also, what length do you want for the COMP-3 (PD) output field?And what is the RECFM and LRECL of your input file?
Back to top
View user's profile Send private message
amitkumar_sindhi

New User


Joined: 20 May 2005
Posts: 8

PostPosted: Sun May 29, 2005 9:14 am
Reply with quote

Numeric edited field format is zzzz9.9999-(suppose vendor cost in input file)
Output file vendor cost format: PD 5.0(length 11)
Output file format: FB
LRECL: 100
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Sun May 29, 2005 8:31 pm
Reply with quote

I'm not familiar with some of your notations (zzzz? PD 5.0?).

If the input field is in the format ddddd.dddd and you want the output field as an 11-byte PD value, you can use this INREC statement:

Code:

   INREC FIELDS=(...,p,10,UFF,TO=PD,LENGTH=11,...)


where p is the starting position of the input field and ... indicates the other fields before and after the field to be converted.

You'll need z/OS DFSORT V1R5 PTF UQ95214 or DFSORT R14 PTF UQ95213 (Dec, 2004) in order to use DFSORT's new UFF format which handles the decimal point in the input field automatically. If you have DFSORT, but you don't have the Dec, 2004 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the Dec, 2004 PTF, see:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Convert HEX to Numeric DB2 3
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Find a record count/numeric is multip... COBOL Programming 1
Search our Forums:

Back to Top