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 

concatenation in Easytrieve program

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


Joined: 17 May 2010
Posts: 2
Topics: 1

PostPosted: Thu May 20, 2010 6:45 pm    Post subject: concatenation in Easytrieve program Reply with quote

Hi!
i am new could you help me how to do in easytrive program
example:
Code:

//QSAM0080 DD  DSN=SIMOTIME.DATA.FILE0001,DISP=SHR
//         DD  DSN=SIMOTIME.DATA.FILE0002,DISP=SHR
//         DD  DSN=SIMOTIME.DATA.FILE0003,DISP=SHR

the Easytrive program how readsQSAM0080 and the DD statements will map the three files (FILE0001, FILE0002 and FILE0003) as one file.
How program's initial read will get the first record from FILE0001 and will not get an End-of-File condition until the last record of FILE0003 will be processed
can i use select statement
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Thu May 20, 2010 9:12 pm    Post subject: Reply with quote

indrjn,

When you concatenate files they are all treated as a single file and in your program you will find file declaration for QSAM0080.

Easytrieve opens and reads the records from file defined on the JOB statement.

Sample

Code:

 FILE QSAM0080
    your file layout declaration

  FILE OUT0080
    your output-file layout declaration

JOB INPUT QSAM0080

   IF INP-VAL = 'SOME VALUE'
      PUT OUT0080 FROM QSAM0080
   END-IF
   


Put statement writes the record

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
indrjn
Beginner


Joined: 17 May 2010
Posts: 2
Topics: 1

PostPosted: Fri May 21, 2010 5:03 pm    Post subject: Reply with quote

thanks Kolusu. I will try it and let you know
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
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