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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Declaration of VB input file record format in PLI....
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm


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