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
 

 

Getting Problem in PARSE for VB file

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

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Wed Nov 19, 2008 12:48 am    Post subject: Getting Problem in PARSE for VB file
Reply with quote

Hi,

I have the VB input file of LRECL 23036 with records like this.
ab;cerf;d;e and so on.

Each field was seperated by delimiters (;) and last field will not have delimiter at the end. There are 23 fields in a record. Hence 22 delimiters would be there.

I want to create the output file (of VB) which will have same 23036 bytes from input file and from 23037 - 23050, i want to have 23rd field (This field will always be having length of 14 and do not have delimiter at end).

I used the below JCl.

Code:

/SORTIN   DD  DSN=EORGA.A4XUD11.SECTRA.TRAN.COPY,                 
/             DISP=SHR                                             
/SORTOUT  DD  DSN=EORGA.SORTOUT1,                                 
/             DISP=(NEW,CATLG,DELETE),                             
/             UNIT=SYSDA,                                         
/             SPACE=(CYL,(01,02),RLSE),                           
/             DCB=(LRECL=23050,RECFM=VB,BLKSIZE=0)                 
/SYSIN    DD  *                                                   
OPTION COPY,VLLONG                                                 
OUTFIL PARSE=(%=(ENDBEFR=C';'),                                   
               %=(ENDBEFR=C';'),                                   
               %=(ENDBEFR=C';'),                                   
               %=(ENDBEFR=C';'),                                   
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %=(ENDBEFR=C';'),                                       
               %23=(FIXLEN=14)),                                       
 BUILD=(1,23036,23037:%23)                                             


But I am getting below error.

Code:


ICE218A 3 134 BYTE VARIABLE RECORD IS SHORTER THAN 23036 BYTE MINIMUM FOR          FIELDS       



Could someone help me here?
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: Wed Nov 19, 2008 1:44 am    Post subject:
Reply with quote

Just use VLFILL=C' ' on the OUTFIL statement, e.g.

Code:

  ...
  BUILD=(1,23036,23037:%23),VLFILL=C' '     


That will fill in missing bytes from "short" records with blanks.

Alternatively, you can use OVERLAY instead of BUILD and you won't need VLFILL:

Code:

  ...
  OVERLAY=(23037:%23)     
Back to top
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Fri Nov 21, 2008 3:22 pm    Post subject: Reply to: Getting Problem in PARSE for VB file
Reply with quote

Thanks Frank,

It's working.
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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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