MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Control cards

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
vidya.p
Beginner


Joined: 24 Jun 2005
Posts: 3
Topics: 2

PostPosted: Tue Jun 28, 2005 5:49 am    Post subject: Control cards Reply with quote

Hi

I would like to know what exactly is a control card and the purpose of it in realtime.I mean few different scenarios where we would use a control card.

Thanks and Regards
Vidya
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jun 28, 2005 5:55 am    Post subject: Reply with quote

vidya.p,

Any sysin statements are considered as control cards for the utility. Take for ex: the sort utitlity.
Code:

//SYSIN  DD *
  SORT FIELDS=COPY
  SUM FIELDS=NONE
/*


In this case SORT FIELDS=COPY and SUM FIELDS=NONE are two control cards for sort pgm.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vidya.p
Beginner


Joined: 24 Jun 2005
Posts: 3
Topics: 2

PostPosted: Wed Jun 29, 2005 12:37 am    Post subject: Control cards Reply with quote

Hi Kolusu,

Thanks for the information.

I have heard saying that information can be passed through control cards to a jcl. Can u please elaborate on the same.

Regards
Vidya
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Jun 29, 2005 5:30 am    Post subject: Reply with quote

Quote:

I have heard saying that information can be passed through control cards to a jcl. Can u please elaborate on the same.

vidya.p,

JCL by itself cannot do any thing. It is used to run your pgms/utilities. so remember that you are controlling the pgm/utility execuetion using the control cards.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kathi
Beginner


Joined: 14 May 2003
Posts: 25
Topics: 0
Location: Mission Viejo, California

PostPosted: Wed Jun 29, 2005 5:34 pm    Post subject: Reply with quote

In the "good ole days" when things were actually put on punched cards, then any card which was used to control the executing program was called a control card. The information in the card might be a date, a switch setting, or a parameter such as sort statements.

Now days we don't use cards, but the term still is used. Typically the input is 80 bytes if used instream in jcl, but it can be most any length. I have used control statements that ranged from 15 bytes to almost 200 bytes.
Back to top
View user's profile Send private message
vak255
Intermediate


Joined: 10 Sep 2004
Posts: 384
Topics: 79

PostPosted: Thu Jul 07, 2005 2:57 pm    Post subject: Reply with quote

good to know that, all these days I wonder why they r called cntl 'cards', now got. Anybody wondering why mainframes are called as 'MAINFRAMES'.

A "mainframe" originally meant the cabinet containing the central processor unit of a very large "Main"-computer.The central processing unit of a large main-computer, usually receiving input from a number of terminals.The whole system got lot of "frames" built in it. Thats the name " Main-Frames".
Back to top
View user's profile Send private message
raam_narayan
Beginner


Joined: 28 Apr 2006
Posts: 12
Topics: 2

PostPosted: Fri Apr 28, 2006 7:04 am    Post subject: Reply with quote

The Control Cards are basically used for controlling the JCL may be any action or in case if you are using any kind of Instream Proc.. For example let's take a JCL which does the Sort through the ICETOOL Utility.. We can define how many ever Control Cards we want for that Sort to take place according to our desire.. Let me give you an example SORT JCL which is done through ICETOOL..
Code:

   //S1    EXEC  PGM=ICETOOL
   //TOOLMSG DD SYSOUT=*
   //DFSMSG DD SYSOUT=*
   //IN1 DD DSN=...  input file1 (FB/508)
   //IN2 DD DSN=...  input file2 (FB/132)
   //T1 DD DSN=&&T1,UNIT=SYSDA,SPACE=(CYL,(5,5)),DISP=
                                                      (MOD,PASS)
   //OUT DD DSN=...  output file (FB/200 VSAM)
   //TOOLIN DD *
   COPY FROM(IN1) TO(T1) USING(CTL1)
   COPY FROM(IN2) TO(T1) USING(CTL2)
   SELECT FROM(T1) TO(OUT) ON(1,3,CH) FIRST VSAMTYPE(F)
   /*
   //CTL1CNTL DD *
     OUTREC FIELDS=(1,200)
   /*
   //CTL2CNTL DD *
     OUTREC FIELDS=(3,3,11,22,200:X)
   /*

Hope now you understand the meaing and the usage of Control Card..

Thanks & Regards,
V.Ram Narayan
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Fri Apr 28, 2006 9:27 am    Post subject: Reply with quote

He probably got the idea 9 months ago. Wink
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Apr 28, 2006 9:52 am    Post subject: Reply with quote

Quote:

He probably got the idea 9 months ago.


This topic was linked for this question which was 2 days old

http://www.mvsforums.com/helpboards/viewtopic.php?t=6311

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group