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

DFSORT convert Text field to signed Numeric format


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

New User


Joined: 07 May 2008
Posts: 36
Location: Chennai

PostPosted: Tue Aug 10, 2010 3:16 pm
Reply with quote

What's the SORT card to convert the Text field to SIGNED Numeric format?

Regards,
Saravana S
Back to top
View user's profile Send private message
smijoss

Active User


Joined: 30 Aug 2007
Posts: 114
Location: pune

PostPosted: Tue Aug 10, 2010 3:26 pm
Reply with quote

give some sample data.
Back to top
View user's profile Send private message
srvk_2k2

New User


Joined: 07 May 2008
Posts: 36
Location: Chennai

PostPosted: Tue Aug 10, 2010 3:35 pm
Reply with quote

My input file-

Field1: '-190000' X(7)

Outfile-

Field1: -190000 S9(07)
Back to top
View user's profile Send private message
smijoss

Active User


Joined: 30 Aug 2007
Posts: 114
Location: pune

PostPosted: Tue Aug 10, 2010 4:12 pm
Reply with quote

Code:
//JS001   EXEC PGM=SORT                                 
//*                                                     
//SYSOUT   DD SYSOUT=*                                 
//*                                                     
//SORTIN   DD *                                         
-190000                                                 
    200                                                 
   -200                                                 
/*                                                     
//SORTOUT   DD DSN=TEMP.TLM.FTBDATE.OUT,               
//             DISP=(NEW,CATLG),                       
//             SPACE=(CYL,(1,1),RLSE),UNIT=TSTDA       
//*                                                     
//SYSIN    DD *                                         
  OPTION COPY                                           
  OUTREC OVERLAY=(15:1,7,FS,EDIT=(STTTTTTT),SIGNS=(+,-))



output :
Code:
-190000       -0190000
    200       +0000200
   -200       -0000200
Back to top
View user's profile Send private message
srvk_2k2

New User


Joined: 07 May 2008
Posts: 36
Location: Chennai

PostPosted: Tue Aug 10, 2010 5:05 pm
Reply with quote

Thank you smijoss
Back to top
View user's profile Send private message
vinu78

Active User


Joined: 02 Oct 2008
Posts: 179
Location: India

PostPosted: Fri Apr 15, 2011 9:08 am
Reply with quote

Hi Smijoss,

If the input field contains decimal point, what will be change in SORT card?
Could you please let me know of that.

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

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Fri Apr 15, 2011 12:53 pm
Reply with quote

Vniu - You already have a thread going on here and the above question seems related to that. If you have a new question, it's good to open up a new thread with a reference to previous thread. Also, you now know that you are using SyncSort not DFSort - so your thread should be in JCL part for the Forum if it's related to Sort-product you are using.
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: Fri Apr 15, 2011 9:05 pm
Reply with quote

Quote:
If the input field contains decimal point, what will be change in SORT card?


The SFF (signed free form) or UFF (unsigned free form) format can be used for values with a decimal point.
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 Copy only TEXT or String from a record SYNCSORT 2
No new posts Date format correction using dfsort DFSORT/ICETOOL 3
No new posts Sorting Date Field DFSORT/ICETOOL 4
No new posts CONVERT a given date from UTC TO BST CICS 0
No new posts Format Binary file to EBCDIC JCL & VSAM 4
Search our Forums:

Back to Top