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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am


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