Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 COB2 file processing rizwanaccy COBOL Programming 8 Tue Jan 02, 2018 1:00 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts Preserve order in Input File pshongal DFSORT/ICETOOL 13 Thu Dec 21, 2017 4:20 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us