IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

can we use GOTO and PERFORM in jcl


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dhanunjaygupta

New User


Joined: 25 Jan 2006
Posts: 1

PostPosted: Wed Jan 25, 2006 2:53 pm
Reply with quote

Hi,
i have a doubt regarding jcl
can we use GOTO and PERFORM in jcl
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Wed Jan 25, 2006 3:06 pm
Reply with quote

Hi dhanunjaygupta,
In JCL i have not seen GOTO

but u have perform
eg :

//STEPA EXEC PGM=ABC,PERFORM=60

this step is performed 60 times


thanks
Balaji
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Wed Jan 25, 2006 3:13 pm
Reply with quote

Hi,

As per my understanding we can not use GOTO State ment in JCL

Regards
Rupesh
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Jan 25, 2006 7:14 pm
Reply with quote

dhanunjaygupta, there are only a few major components, and a few more minor components within JCL. Remember these and it will make your life simpler.

Major Components

  • JOB Statement.
  • EXEC Statement.
  • DD Statements (if needed).
  • IF/THEN/ELSE/ENDIF Statements (if used).
  • OUTPUT Statement (if used).


Minor Components that are rarely seen

  • COMMAND Statement.
  • CNTL/ENDCNTL Statements.
  • INCLUDE Statement.
  • JCLLIB Statement.
  • PROC/PEND Statements.
  • SET Statement.
  • XMIT Statement.
  • JES2 Control Statements.
  • JES3 Control Statements.


sbalajibe, PERFORM is an obsolete parameter of the JOB statement.
Back to top
View user's profile Send private message
pa1chandak
Currently Banned

New User


Joined: 31 Jan 2006
Posts: 55

PostPosted: Wed Feb 01, 2006 8:38 pm
Reply with quote

WE CAN USE
IF ELSE THEN ENDIF
IN JCLS.

THERE IS NO GOTO AND PERFORM .

WHILE USING THE IF ELSE YOU NEED TO TAKE CARE THAT IT IS NOT STARTING FROM 3RD COLOUMN.

IF I AM WRONG SOMEWHERE PLEASE CORRECT ME

THANK YOU

DO SEND ME THE REPLY

PAWAN

09822546416

// THE ONE I LOVE , I SHALL NEVER BLAME //
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Use of Perform Thru Exit COBOL Programming 6
No new posts How to perform Digest Access Authenti... All Other Mainframe Topics 0
No new posts Problem with GOTO PL/I & Assembler 6
No new posts Infinite loop Issue in perform Until COBOL Programming 18
No new posts Perform airthmetic operations in JCL JCL & VSAM 4
Search our Forums:

Back to Top