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
 

 

Create an eztrieve program and know the basic and advanced

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
madlui56
Currently Banned

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Mon Jul 09, 2007 10:49 am    Post subject: Create an eztrieve program and know the basic and advanced
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: 3158
Location: Tucson AZ

PostPosted: Mon Jul 09, 2007 11:00 am    Post subject:
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    Post subject: Re: Eztrieve Program
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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