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 IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm


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