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

How to use PASSWORD parameter?


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

New User


Joined: 22 Nov 2007
Posts: 83
Location: Chennai

PostPosted: Mon Nov 26, 2007 9:55 am
Reply with quote

Hi All,
Can any one tell me how to use the PASSWORD parameter in the JOB card? Please find the below code snippet.

Code:

//ABCDEFG JOB (AAAA),'FILE CPY JOB',CLASS=0,                           
//         MSGCLASS=U,NOTIFY=&SYSUID,                                   
// USER=ABCDEFG,PASSWORD=                                               


Thanks in Advance
Agni.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Nov 26, 2007 10:33 am
Reply with quote

Agni,

You need to 'hardcode' your password. Assume your password is 'magic1'. Then job card looks as -

Code:
//ABCDEFG JOB (AAAA),'FILE CPY JOB',CLASS=0,                           
//         MSGCLASS=U,NOTIFY=&SYSUID,                                   
// USER=ABCDEFG,PASSWORD=MAGIC1
Back to top
View user's profile Send private message
Agni

New User


Joined: 22 Nov 2007
Posts: 83
Location: Chennai

PostPosted: Mon Nov 26, 2007 10:49 am
Reply with quote

Hi Murali,

Can you also tell me what is the use of this parameter?

Thanks
Agni.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Nov 26, 2007 10:56 am
Reply with quote

Agni,

Quote:
Can you also tell me what is the use of this parameter?

Refer manuals.
Back to top
View user's profile Send private message
ramesh_ibm

New User


Joined: 17 Nov 2007
Posts: 16
Location: banglore

PostPosted: Mon Nov 26, 2007 11:28 am
Reply with quote

Code:

//jobnamex             JOB  (agency,rc),

//                             'PROD-CNTL',CLASS=A,MSGCLASS=Q,

//                             USER=uuuuuuuu,

//                             PASSWORD=pppppppp
 



Where: JOB is a constant that must be coded positions 12 through 14.

agency is the 6 position billing account number.
rc is the "run code" as defined in Appendix A.
userid is the RACF assigned user security
identification.

Password is the individual unique security name assigned
to the userid.
uuuuuuuu and pppppppp Production jobs are under the security control of RACF, which requires job statement parameters "USER" and "PASSWORD" to acquire authorization for execution. USER and PASSWORD parameters must be eight positions long for production jobs.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Nov 26, 2007 12:00 pm
Reply with quote

Agni,

Welcome to the forums. You can make use of this password parameter for the reasons stated below.

Suppose your colleague is logged in and you want to submit a job from his ID and want that to be available in your spool. Then you can submit the job from his ID giving the USER and the PASSWORD parameter. The job will be available in your spool after the execution.

Say you have a job where all the new datasets are to be created with ID1 (Your teammates ID) Then you can run a job from your ID using the USER and PASSWORD of ID1.
Back to top
View user's profile Send private message
ramesh_ibm

New User


Joined: 17 Nov 2007
Posts: 16
Location: banglore

PostPosted: Mon Nov 26, 2007 12:15 pm
Reply with quote

I have one doubt aaru

If I want to submit a Job from my friend ID I need to submit his user Id and Passowrd .....that means each ID has a unique password??

or wether it is the same as login password

Please clarify bit more on this

thanks,
Ramesh
Back to top
View user's profile Send private message
Agni

New User


Joined: 22 Nov 2007
Posts: 83
Location: Chennai

PostPosted: Mon Nov 26, 2007 12:18 pm
Reply with quote

Hi Aaru,

I already did that and i got the following error.
Code:

TSS7221E Dataset Not Accessible - $JOB.XXXXXXXI                       
TSS7270E Job Submit/ACID Authorization Failed by Site Security Exit   
SUBMIT ENDED DUE TO ERROR, SYSTEM ABEND CODE 913                       
***


where XXXXXXX is my teammate's User ID. I gave his ID and Password in the job card. Even i tried with my ID in the jobname and his ID and password in the respctive parameters.

Note: We should use our user IDs for the job names.

Thanks
Agni.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Nov 26, 2007 12:23 pm
Reply with quote

ramesh,

Quote:
If I want to submit a Job from my friend ID I need to submit his user Id and Passowrd .....that means each ID has a unique password??


Yes, you need to know his password which you can very well get from your friend.
Back to top
View user's profile Send private message
ramesh_ibm

New User


Joined: 17 Nov 2007
Posts: 16
Location: banglore

PostPosted: Mon Nov 26, 2007 12:34 pm
Reply with quote

Code:

.  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
SDSF EDIT    DEVAJS9T (JOB56426) JCLEDIT                   Columns 00001 00072
Command ===> sub                                              Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 //DEVAMJ9T  JOB (SPUFI),'BAT SPUFI',CLASS=C,MSGCLASS=X,                 
000002 //             NOTIFY=&SYSUID,REGION=4M,USER=DEVAJS9,PASSWORD=GAPINV06 
000003 //PS05    EXEC PGM=IEBGENER                                             
000004 //SYSUT1    DD DSN=DEVAJS9.TEST.NEW,                                   
000005 //             DCB=(LRECL=80,RECFM=FB,BLKSIZE=14160),                   
000006 //             SPACE=(TRK,(1,5),RLSE),                                 
000007 //             DISP=(NEW,CATLG,DELETE)                                 
000008 //SYSUT2    DD SYSOUT=X                                                 
000009 //SYSPRINT  DD SYSOUT=X                                                 
000010 //SYSIN   DD *                                                         
****** **************************** Bottom of Data ****************************
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
IKJ56283I USER ON JOBCARD MUST YOUR OWN OR AN AUTHORIZED USERID AND THE JOBNAME
MUST MATCH THAT USERID                                                         
***                                                                           
                                                                             


I too got the above error...
Back to top
View user's profile Send private message
ramesh_ibm

New User


Joined: 17 Nov 2007
Posts: 16
Location: banglore

PostPosted: Mon Nov 26, 2007 12:38 pm
Reply with quote

may be what is I did is I can explain clear

My ID is DEVAMJ9 I gave my friend ID and Password as USER and PASSWORD

But SUBMIT failed with the above shown error message
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Nov 26, 2007 12:40 pm
Reply with quote

Ramesh,

Please note that some shops doesn't allow these things.
Back to top
View user's profile Send private message
ramesh_ibm

New User


Joined: 17 Nov 2007
Posts: 16
Location: banglore

PostPosted: Mon Nov 26, 2007 12:43 pm
Reply with quote

U r right...
Thanks murmohk1..
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Nov 26, 2007 12:43 pm
Reply with quote

Agni and ramesh,

I again tried and it is working fine in my shop. Better get in touch with the security guys to know about your installation.

Techies,

Please advise if there is any other solution.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Nov 26, 2007 12:47 pm
Reply with quote

Aaru,

Quote:
I again tried and it is working fine in my shop.

As said in my prev post, some shops DOESN'T allow these things.

Quote:
Please advise if there is any other solution.

May be you can directly submit the job from others login.
Back to top
View user's profile Send private message
Agni

New User


Joined: 22 Nov 2007
Posts: 83
Location: Chennai

PostPosted: Mon Nov 26, 2007 12:49 pm
Reply with quote

I think you guys must be right. May be they would have defined that these kind of job submissions should not be done while they installed in my shop.

Anyways, thanks for your time to reply for my query!!!


Thanks
Agni.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 26, 2007 1:07 pm
Reply with quote

Quote:
If I want to submit a Job from my friend ID I need to submit his user Id and Passowrd


re.: many posts

I am amazed by the thoughtlessness with which security issues are approached in these forums,
people please wake up, security is vital, to any organization, and proper consideration must be given before replying

I would never trust organizations were uesr and passwords wewre public domain ( like it appears from some posts )

in any MODERN/DECENT organization trying to use some other userid will result in lawful termination of both people involved

now back to the technical issue,
no need to put user and password in the job card,
JES early verify takes care of that,

putting user and password in the job card,
( even if jes masquerades it on the sysout),
means that if a PF3 slips by, a password would be stored in clear somwhere,
and we wouldn' t want that !!
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 Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top