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
 

 

How to convert Character format to ZD format

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

New User


Joined: 03 Jul 2007
Posts: 77
Location: Hyderabad

PostPosted: Thu Oct 25, 2007 2:51 pm    Post subject: How to convert Character format to ZD format
Reply with quote

How to convert Character format to ZD format?
Example: I want to convert from -100 in CH format to ZD format using sort.

I tried as below

OPTION COPY
OUTREC FIELDS=(1,4,CH,TO=ZD,LENGTH=4)
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: Thu Oct 25, 2007 9:11 pm    Post subject:
Reply with quote

Binaya,

The correct DFSORT control statements for converting a value like -100 to a ZD value would be:

Code:

  OPTION COPY                                 
  OUTREC FIELDS=(1,4,SFF,TO=ZD,LENGTH=4)     
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Thu Oct 25, 2007 9:45 pm    Post subject:
Reply with quote

Frank,

Please let me know, here SFF stands for 'Single File Format' or something else ?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Thu Oct 25, 2007 9:56 pm    Post subject:
Reply with quote

I just browsed through the DFSORT Manual, there is a full form of
SFF : Free Form (Signed Numeric)..what is 'Free Form' is there something called as 'slave form' icon_confused.gif
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: Thu Oct 25, 2007 10:16 pm    Post subject:
Reply with quote

SFF is signed free form. UFF is unsigned free form. "Free form" means in "any" form as opposed to a specific form like ZD or PD.

For complete details of DFSORT's SFF and UFF formats, see:

www.ibm.com/servers/storage/support/software/sort/mvs/pdug/
Back to top
View user's profile Send private message
Binaya

New User


Joined: 03 Jul 2007
Posts: 77
Location: Hyderabad

PostPosted: Fri Oct 26, 2007 11:32 am    Post subject: Thanks
Reply with quote

Thanks so much Frank.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Fri Oct 26, 2007 1:24 pm    Post subject:
Reply with quote

Frank Yaeger wrote:
SFF is signed free form. UFF is unsigned free form. "Free form" means in "any" form as opposed to a specific form like ZD or PD.


Thanks for the clarification & link Frank icon_smile.gif
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 How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts convert PD to ZD ram_vizag DFSORT/ICETOOL 5 Sat Nov 05, 2016 3:06 am
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm


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