View previous topic :: View next topic |
Author |
Message |
vidya.p Beginner
Joined: 24 Jun 2005 Posts: 3 Topics: 2
|
Posted: Tue Jun 28, 2005 5:49 am Post subject: Control cards |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Jun 28, 2005 5:55 am Post subject: |
|
|
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 |
|
 |
vidya.p Beginner
Joined: 24 Jun 2005 Posts: 3 Topics: 2
|
Posted: Wed Jun 29, 2005 12:37 am Post subject: Control cards |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Jun 29, 2005 5:30 am Post subject: |
|
|
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 |
|
 |
Kathi Beginner

Joined: 14 May 2003 Posts: 25 Topics: 0 Location: Mission Viejo, California
|
Posted: Wed Jun 29, 2005 5:34 pm Post subject: |
|
|
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 |
|
 |
vak255 Intermediate

Joined: 10 Sep 2004 Posts: 384 Topics: 79
|
Posted: Thu Jul 07, 2005 2:57 pm Post subject: |
|
|
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 |
|
 |
raam_narayan Beginner
Joined: 28 Apr 2006 Posts: 12 Topics: 2
|
Posted: Fri Apr 28, 2006 7:04 am Post subject: |
|
|
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 |
|
 |
Mervyn Moderator

Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Fri Apr 28, 2006 9:27 am Post subject: |
|
|
He probably got the idea 9 months ago.  _________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
|
|