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
 

 

DFSORT how to SORT VB format records.

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

New User


Joined: 14 Oct 2008
Posts: 4
Location: bangalore

PostPosted: Tue Oct 14, 2008 11:10 am    Post subject: DFSORT how to SORT VB format records.
Reply with quote

HI my requiremnt is to sort the VB format record

Code:

  SORT  FIELDS=(52,9,CH,A,   
              80,13,CH,A,   
              1640,20,CH,A,
              1660,20,CH,A,
              1680,20,CH,A)


this is vB records so i added 4 bytes too. if we see in the file the sort starts at 48 position.when i submit the job it throw
error

Code:

ICE218A 0 694 BYTE VARIABLE RECORD IS SHORTER THAN 1699 BYTE MINIMUM FOR         FIELDS


How to resolve this?

Note: 1640,20 &1660,20&1680,20 are address field.and those are japanes charater.
52,9 policy number
80,13 doc registration number


can we give CH for Japanese character?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Oct 14, 2008 12:36 pm    Post subject:
Reply with quote

Take a look at the following options in the DFSORT manuals.

VLSHRT VLSCMP
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue Oct 14, 2008 12:51 pm    Post subject: Reply to: DFSORT how to SORT VB format records.
Reply with quote

Quote:
can we give CH for Japanese character?


the issue is not with japanese characters
it is that You are trying to process data outside the current record length

somewhere in Your logic ( application design ) there is a flaw,
You are expecting records with a 1xxx something length,
but You get also some record which are shorter, but most important they do not seem to contain the info You expect
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: Tue Oct 14, 2008 8:36 pm    Post subject:
Reply with quote

kaj_mei,

If you use DFSORT's VLSHRT option, the "short" records will be sorted as if the missing characters are binary zeros. If that's what you want to do, then you can add the following to your job:

Code:

//DFSPARM DD *
   OPTION VLSHRT
/*


If you want to handle the "short" records in some other way, you need to explain how you want to handle them.

expat,

VLSHRT applies to SORT/MERGE, SUM, and INCLUDE/OMIT.

VLSCMP only applies to INCLUDE/OMIT, not SORT/MERGE, so it's not relevant in the situation described here.
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 SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am


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