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 

encrypting and decrypting of datasets
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Jun 27, 2007 1:03 am    Post subject: encrypting and decrypting of datasets Reply with quote

Hai All,

I would like to know what do we mean by encrypting and decrypting of datasets ? Can anybody help me what exactly encryption and decryption concept / why do we need basically ?
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Wed Jun 27, 2007 1:49 am    Post subject: Reply with quote

Have you read the encryption section in the IDCAMS manual ?
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Jun 27, 2007 5:27 am    Post subject: Reply with quote

Expat,

Can you help me with the link and moreover can u help me with any sample post in this website ? Thanks.
Back to top
View user's profile Send private message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Jun 27, 2007 5:30 am    Post subject: Reply with quote

Please help me in understanding what do we mean by Encryption and Decryption and why do we need basically ?
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Wed Jun 27, 2007 5:35 am    Post subject: Reply with quote

It is part of the REPRO function

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1v403/CCONTENTS
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jun 27, 2007 5:38 am    Post subject: Reply with quote

yadov2005,

there was a thread about encryption and decryption recently. Kolusu provided an answer and some links.

search on kolusu's posts.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Jun 27, 2007 5:48 am    Post subject: Reply with quote

Thanks Dick and Expat for the support.

But please help me out why do we need encryption and decryption , as i am not at all able to understand why do we need it and what is the necessity.I know i am lagging basics but please help me understand the concepts clearly.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Jun 27, 2007 6:36 am    Post subject: Reply with quote

yadav2005,

Encryption is the conversion of datainto a form, called a ciphertext, that cannot be easily understood by unauthorized people. Decryption is theprocess of converting encrypted data back into its original form,so it can be understood.

The use of encryption/decryption is as old as theart of communication. In wartime, a cipher, often incorrectlycalled a "code," can be employed to keep the enemy from obtaining the contents of transmissions. (Technically, a codeis a means of representing a signal without the intent of keepingit secret; examples are Morse code and ASCII.) Simple ciphers include the substitution of letters for numbers, the rotation of letters in the alphabet, and the "scrambling" of voice signals by inverting the sideband frequencies. More complex ciphers work according to sophisticated computer algorithms that rearrange the data bits in digital signals.

In order to easily recover the contents of anencrypted signal, the correct decryption key is required. The key is an algorithm that "undoes" the work of the encryption algorithm. Alternatively, a computer can be used in an attempt to "break" the cipher. The more complex the encryption algorithm, the more difficult it becomes to eavesdrop on the communications without access to the key.

Encryption/decryption is a good idea when carrying out any kind of sensitive transaction, such as a credit-card purchase online,or the discussion of a company secret between different departments in the organization. The stronger the cipher -- thatis, the harder it is for unauthorized people to break it -- the better, in general. However, as the strength of encryption/decryption increases, so does the cost.

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


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Jun 27, 2007 6:53 am    Post subject: Reply with quote

Kolusu,

Thanks a lot for your reply and i am clear with my basics.Can i have an example to demonstrate the same in my test region as i want to try out the process ?

Thank you once again.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Jun 27, 2007 6:58 am    Post subject: Reply with quote

yadav2005,

Read the last post in this topic

http://www.mvsforums.com/helpboards/viewtopic.php?t=3060&highlight=encryption


Alternatively you can use Repro examples from the manual which expat has given in this topic

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


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Jun 27, 2007 8:32 am    Post subject: Reply with quote

Kolusu,

Thanks a lot once again.I am trying to simulate an example but i am facing some error .Can you let me know how to fix the error ?

Example job from the manual

Code:

 //ENPRI    JOB    ...
      //JOBCAT   DD   DSN=D27UCAT,DISP=SHR
      //STEP1    EXEC  PGM=IDCAMS
      //CLEAR    DD   DSN=SAMDS1,DISP=OLD,
      //              VOL=SER=VOL005,UNIT=3380
      //CRYPT    DD   DSN=ESDS1,DISP=OLD
      //KEYIN    DD   *
              X'53467568503A7C29'
      /*
      //SYSPRINT DD   SYSOUT=A
      //SYSIN    DD   *
          REPRO -
               INFILE(CLEAR) -
               OUTFILE(CRYPT/UPPW) -
               REUSE -
               ENCIPHER -
                (PRIVATEKEY -
                 DATAKEYFILE(KEYIN))
      /*



OUTPUT ERROR
Code:

IDCAMS  SYSTEM SERVICES                                           TIME: 18:55:07
                                                                               
  REPRO                 -                                                       
  INFILE(INPUT)         -                                                       
  OUTFILE(CRYPT)        -                                                       
  REUSE                 -                                                       
  ENCIPHER              -                                                       
  (PRIVATEKEY           -                                                       
  DATAKEYFILE(KEYIN))                                                           
IDC3335I ENCIPHER ERROR                                                         
IDC3336I ** GENKEY RETURN CODE IS 4                                             
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0                                     
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12                             
                                                                               
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12             
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Jun 27, 2007 8:43 am    Post subject: Reply with quote

yadav2005,

You need Programmed Cryptographic Facility (PCF) to be active in your shop to perform the Encryption/decryption. Looks like your PCF was not initialized. You need to talk to your Systems programmers and check if your system has PCF

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


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Jun 27, 2007 8:53 am    Post subject: Reply with quote

Kolusu,

Is there any way to find out if i have PCF in my shop or not ? I am assuming that there might be a job running if i have PCF facility.

Please let me know any means to get known / how to get activated the PCF .Thank You.
Back to top
View user's profile Send private message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Wed Jun 27, 2007 12:14 pm    Post subject: Reply with quote

Kolusu,

I was successfully able to run my encryption job and it went fine and i saw the contents of the encrypted ESDS dataset but while i try to decrypt the ESDS Dataset i am failing and the error is below and i am making use of the example in the link.Please help me how to fix the error.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1v403/3.25.3.9?SHELF=&DT=19990113080956&CASE=

Code:


//STEP010 EXEC PGM=IDCAMS                                               
//SYSPRINT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//CRYPT    DD DSN=PROJECT.TEST.CRYPT,DISP=SHR                           
//CLEAR    DD DSN=PROJECT.TEST.OUT,DISP=SHR                             
//SYSIN    DD *                                                         
  REPRO                 -                                               
  INFILE(CRYPT)         -                                               
  OUTFILE(CLEAR)        -                                               
  DECIPHER              -                                               
  (DATAKEYFILE(X'53467568503A7C29'))                                   
/*                                                                     
//

IDCAMS  SYSTEM SERVICES                                           TIME: 12:49:56
                                                                               
  REPRO                 -                                                       
  INFILE(CRYPT)         -                                                       
  OUTFILE(CLEAR)        -                                                       
  DECIPHER              -                                                       
  (DATAKEYFILE(X'53467568503A7C29'))                                           
IDC3300I  ERROR OPENING ....&.@.                                               
IDC3304I ** JCL STATEMENT MISSING                                               
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0                                     
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12                             
                                                                               
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12             
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Jun 27, 2007 12:25 pm    Post subject: Reply with quote

yadav2005,

Ok this is not fair that everytime you run an experimental job and it fails you come here and seek help trying to fix it. You should be able to look up the error and try to solve it and if everything fails then we can assist you.

Quote:

IDC3300I ERROR OPENING ....&.@.
IDC3304I ** JCL STATEMENT MISSING


Post the error message Id's here and read the explanation and try to solve it

http://www-03.ibm.com/servers/eserver/zseries/zos/bkserv/lookat/

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 -> Data Management All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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