Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us