MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Read only first 10 characters from a record of a file in pli

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
coolguy2005
Beginner


Joined: 22 Mar 2005
Posts: 22
Topics: 16

PostPosted: Thu Apr 28, 2005 1:05 pm    Post subject: Read only first 10 characters from a record of a file in pli Reply with quote

Hai,


Can anyone tell how can i read only first 10 bytes of a record from a file one by one and i am storing this 10 bytes into an array declared of 10 bytes.Since the record is too big i want to read only 10 bytes and record layout is declared as a PLI STRUCTURE

serial_array(1000) char(10);
read file(infile) input into(serial_array);

Thanks & Best Regards
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Apr 28, 2005 1:23 pm    Post subject: Reply with quote

coolguy2005,

Please do not open more than 1 topic for the same question.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Apr 28, 2005 1:27 pm    Post subject: Reply with quote

Yeah, or I'll come over there and slap you upside your head! Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group