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
 

 

Need help on easytrieve "GO TO JOB"

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

New User


Joined: 18 Feb 2008
Posts: 1
Location: Bangalore

PostPosted: Thu Jan 07, 2010 12:53 pm    Post subject: Need help on easytrieve "GO TO JOB"
Reply with quote

Hi,

I have an easytrieve step in JCL like this:

JOB INPUT (FILE1 KEY FILE1-KEY +
FILE2 KEY FILE2-KEY)

IF MATCHED FILE1 FILE2
IF FILE1-DATE EQ FILE2-DATE
GO TO JOB -----------> EXIT1
ELSE
IF FILE1-AMOUNT LT FILE2-AMOUNT
--do some calculations on file1 data--
PUTF OUTFILE1
GO TO JOB ------------->EXIT2
ELSE
--do some calculations on file2 data--
PUTF OUTFILE2
GO TO JOB -------------->EXIT3
END-IF
END-IF

File1 data is like this:
KEY Date AMT
100 10/12/2009 100.00
101 25/11/2009 150.00
101 15/12/2009 200.00
105 20/01/2010 050.00

Fille2:
KEY Date AMT
090 10/12/2009 100.00
101 25/12/2009 200.00
104 20/01/2010 050.00

"GO TO JOB" is coded at 3 places. in what order this code will read the records from 2 input files?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jan 07, 2010 1:22 pm    Post subject:
Reply with quote

Please learn to post in the appropriate forum.
This is a CA product.

Topic moved.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jan 07, 2010 9:54 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

Quote:
"GO TO JOB" is coded at 3 places. in what order this code will read the records from 2 input files?
The question has nothing to do with the statement. . . There could be more or less GO TO statements and the records will be read the same way (in the same order).

The GO TO statements mention "exit" - this could be misleading. The GO TO JOB transfers control back to the JOB statement for the next iteration.
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 Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm


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