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

Need help in converting ZD +ve value to ZD -ve value


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

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Tue Oct 12, 2010 8:02 pm
Reply with quote

Hi All,

I have a value in my input file as shown below.

0003200
0000234
0001025

i want to convert the above data to -ve ZD format as shown below using sort/icetool.

000320}
000023M
000102N

( } = -1 ; M = -4 ; N = -5 )

Could any one please shed some light on this.

Thanks,
RBC.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Oct 12, 2010 8:14 pm
Reply with quote

Multiply by "-1" ? icon_neutral.gif

Code:
//STEP001  EXEC PGM=SORT                     
//SORTIN DD *                                 
0003200                                       
0000234                                       
0001025                                       
//SORTOUT DD SYSOUT=*                         
//SYSIN DD *                                 
  OPTION COPY                                 
  INREC BUILD=(-1,MUL,01,07,SFF,ZD,LENGTH=07)
//SYSOUT DD SYSOUT=*                         
//*                                           


output:
Code:
000320}
000023M
000102N
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Tue Oct 12, 2010 8:18 pm
Reply with quote

Thanks Anuj,

I have not used SFF, thats why it didnt work properly.

Thanks a lot.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Oct 12, 2010 8:20 pm
Reply with quote

Hope, you got it working now - Good Luck. icon_smile.gif
Back to top
View user's profile Send private message
Rambhupalchowdary

New User


Joined: 19 Aug 2010
Posts: 47
Location: Hyderabad

PostPosted: Wed Oct 13, 2010 10:58 am
Reply with quote

Anuj,

Could you let me know the usage of SFF, where can we use this?

Thanks,
Ram.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Wed Oct 13, 2010 3:44 pm
Reply with quote

See here ftp.software.ibm.com/storage/dfsort/mvs/sortpdug.pdf and search for SFF.
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: Wed Oct 13, 2010 10:17 pm
Reply with quote

RBC,

Appendix C.2 of "z/OS DFSORT Application Programming Guide" shows where the various DFSORT data formats can be used:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA50/C.2?DT=20100630155256
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 Converting fixed length file to excel... IBM Tools 7
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Converting S9(18) value to a decimal ... DFSORT/ICETOOL 6
No new posts Converting unpacked fields to pack us... SYNCSORT 4
Search our Forums:

Back to Top