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

Create an eztrieve program and know the basic and advanced


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
madlui56

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Mon Jul 09, 2007 10:49 am
Reply with quote

I would like an assisstance on how to create an eztrieve program and know the basic and advanced commands on it.

I would gladly appreciate you on this guys.

Thanks.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jul 09, 2007 11:00 am
Reply with quote

Easytrieve Plus Training has pointers to an "Online User Reference" and an "Online Programmer's Reference". You might start there.
Back to top
View user's profile Send private message
a027412

New User


Joined: 05 Jul 2007
Posts: 40
Location: Minneapolis, MN

PostPosted: Mon Jul 09, 2007 12:15 pm
Reply with quote

here is a sample code, please let me kow if you need further info
Code:

PARM LINK (PgmName R)        +                                     
DEBUG (CLIST XREF SHORT DMAP) +                                         
ABEXIT (SNAP)                                                           
**--------------------------------------------------------------------**
** PROGRAM ID   :PgmName.                                             **
**--------------------------------------------------------------------**
FILE INFIL                                                         
**--------------------------------------------------------------------**
INPUT-REC                                      1     100      A         
  IN-ATTR1                                     1      02      A         
  IN-ATTR2                                     3      02      B         
**--------------------------------------------------------------------**
FILE OUTFIL                                                         
**--------------------------------------------------------------------**
OUTPUT-REC                                     1     100      A         
  OUT-ATTR1                                    1      02      A         
  OUT-ATTR2                                    3      02      B         
**--------------------------------------------------------------------**
** WORKING STORAGE SECTION BEGINS HERE                                **
**--------------------------------------------------------------------**
 WS-INPUT-READ-CT                               W   4    B   VALUE 0   
 WS-OUTPUT-WRITE-CT                              W   4    B   VALUE 0   
**--------------------------------------------------------------------**
** MAIN PROCESSING STARTS HERE                                        **
**--------------------------------------------------------------------**
JOB INPUT (INFIL)   FINISH 5000-DISPLAY                             
    PERFORM 1100-READ-COUNT
    CASE IN-ATTR1                                                       
         WHEN '01'                                                                           
              PERFORM 1200-PROCESS-01
         WHEN '02'                                                     
              PERFORM 1300-PROCESS-02
         OTHERWISE                                                     
              PERFORM 1400-PROCESS-ERROR
    END-CASE                                                           
**--------------------------------------------------------------------**
** READ INCREMENT
**--------------------------------------------------------------------**
   1100-READ-COUNT. PROC                                       
        WS-INPUT-READ-CT            = WS-INPUT-READ-CT + 1             
   END-PROC                                                             
**--------------------------------------------------------------------**
** PROCESS 01
**--------------------------------------------------------------------**
   1200-PROCESS-01. PROC                                       
        OUT-ATTR1                    = Something
        OUT-ATTR2                    = Something
   .
   .
        WS-OUTPUT-WRITE-CT            = WS-OUTPUT-WRITE-CT + 1 
   PUT OUTFIL           
   END-PROC                                                             
**--------------------------------------------------------------------**
** PROCESS 02
**--------------------------------------------------------------------**
   1300-PROCESS-02. PROC                                       
        OUT-ATTR1                    = Something
        OUT-ATTR2                    = Something
        .
   .
   .
        WS-OUTPUT-WRITE-CT            = WS-OUTPUT-WRITE-CT + 1             
   PUT OUTFIL           
   END-PROC                                                             
                                             
**--------------------------------------------------------------------**
** DISPLAY COUNTS
**--------------------------------------------------------------------**
   5000-DISPLAY. PROC                                           
        DISPLAY 'TOTAL INPUT RECORDS  :' WS-INPUT-READ-CT
        DISPLAY 'TOTAL OUTPUT RECORDS :' WS-OUTPUT-WRITE-CT     
   END-PROC                                                             
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top