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
 
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 Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

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