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: 10231
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 How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm


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