IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Declaration of VB input file record format in PLI....


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Hima1985

New User


Joined: 17 Apr 2009
Posts: 70
Location: India

PostPosted: Fri Apr 24, 2009 10:00 am
Reply with quote

Hello ....

In PLI program, am using 2 input file of VB/Lrecl= 4604. how could be the structure of record-format into which i would be reading this file as this is a variable block file and the length varies record by record.....I need to write the same record from one input file to output file of VB/Lrecl = 4604 after few comparisions and validations....
If am declaring, INPUT_RECORD_FORMAT (into which the input file record is read) as CHAR(4604) ... and when am writing the same record to output VB file ... I am getting an error as "length of the record variable was greater than record length " and if i declare as CHAR(4600) ,
it is writing into the output file properly but that record is not matching with the original file record(after the job is run and when compared files thru SUPERC compare option) though i am using same record format for reading from input and writing into output files...

So how the INPUT_RECORD_FORMAT of this VB file be declared to get exact results...
Could some one pls suggest on this ...
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Fri Apr 24, 2009 10:53 am
Reply with quote

Hi Hima,
You can try this for your input record.

INPUT_RECORD_FORMAT CHAR(4604) VARYING;
Back to top
View user's profile Send private message
pavanchandana

New User


Joined: 05 Sep 2008
Posts: 15
Location: Hyderabad

PostPosted: Fri Apr 24, 2009 11:20 am
Reply with quote

Hi Srihari...
It didnt work out .... still same issue is coming up...
Back to top
View user's profile Send private message
Hima1985

New User


Joined: 17 Apr 2009
Posts: 70
Location: India

PostPosted: Fri Apr 24, 2009 12:16 pm
Reply with quote

Hello Srihari... Finally it has worked with VARYING.... Thanks a ton !!!!
Back to top
View user's profile Send private message
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Fri Apr 24, 2009 12:30 pm
Reply with quote

Hima,
Glad to hear that. icon_razz.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top