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 SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


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