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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm


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