View previous topic :: View next topic |
Author |
Message |
syedfasi Beginner
Joined: 29 Jul 2004 Posts: 10 Topics: 6 Location: India
|
Posted: Thu Jul 29, 2004 12:04 pm Post subject: How can I create a file with DATE format as DDMMYY.DOC |
|
|
Can any one help, for solving the following problem
1) I need to create a file with Date format as DDMMYY.DOC,
2) I need to give access to this file to some userid (WEAXXXX)
All these needs to be done from a JCL itself..
Thanks for your help...
Your Friend
|
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Jul 29, 2004 12:24 pm Post subject: |
|
|
Quote: |
1) I need to create a file with Date format as DDMMYY.DOC,
2) I need to give access to this file to some userid (WEAXXXX)
|
OK, I'm not clear at all as to your problem. Do you wish to catalog an MVS DATASET and include, within the content of the DATASET, a date field in DDMMYY format? I have no idea where you're going with '.DOC'. And, what do you mean by "need to give access"? Are you implying that you must define an access rule within your security product (RACF,ACF-2,Top Secret) on the fly? |
|
Back to top |
|
|
syedfasi Beginner
Joined: 29 Jul 2004 Posts: 10 Topics: 6 Location: India
|
Posted: Thu Jul 29, 2004 12:30 pm Post subject: |
|
|
superk,
We are running some job on a daily basis, that creates to dataset, then we manually send it to server... So we run a clists to create a datasets with DDMMYY format, then giving a access to a Admin peoples and then run FTP step to send it to server..
This what we do, I am curious to automate this whole process... is there any way of doing this ???? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12369 Topics: 75 Location: San Jose
|
Posted: Thu Jul 29, 2004 12:59 pm Post subject: |
|
|
Quote: |
We are running some job on a daily basis, that creates to dataset, then we manually send it to server... So we run a clists to create a datasets with DDMMYY format, then giving a access to a Admin peoples and then run FTP step to send it to server..
This what we do, I am curious to automate this whole process... is there any way of doing this ????
|
syedfasi,
If you had mentioned this requirement in the first post itself, we could have suggested a solution.
Everything you asked for can be done in a max of 2 steps which includes the FTP step.
All you need is to generate dynamic FTP control cards. Here is a sample job which will create the dynamic FTP control cards which can be used in the ftp step.
Code: |
//STEP0100 EXEC PGM=EZACFSM1
//SYSIN DD *
SERVER NAME
PASSWORD
PUT 'YOUR MAINFRAME FILE NAME' PC FILE NAME &LDAY.&LMON.&YR2..DOC
QUIT
//SYSOUT DD DSN=DYNAMIC FTP CARDS,
// DISP=(NEW,CATLG,DELETE),
// UNIT=DISK,
// SPACE=(TRK,(1,1),RLSE),
// DCB=(LRECL=80,RECFM=FB,BLKSIZE=0)
//*
//STEP0200 EXEC PGM=FTP,PARM='(EXIT=16'
//SYSPRINT DD SYSOUT=*
//INPUT DD DSN=DYNAMIC FTP CARDS,
// DISP=SHR
//OUTUT DD SYSOUT=*
//*
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Jul 29, 2004 1:02 pm Post subject: |
|
|
Quote: |
We are running some job on a daily basis, that creates to dataset, then we manually send it to server... So we run a clists to create a datasets with DDMMYY format, then giving a access to a Admin peoples and then run FTP step to send it to server..
This what we do, I am curious to automate this whole process... is there any way of doing this ????
|
Folks, is it just me??....
syedfasi, I'm going to break down your comments into units of work for the process. I'll need you to fill in the gaps where needed:
1. We are running some job on a daily basis - I presume this means that you are using a job scheduling system, so I imagine this part is automated.
2. that creates to dataset - I presume you mean that this daily job writes data into a dataset. No problem here.
3. then we manually send it to server - why is it sent manually, and how is it sent? What is your suggestion for an alternative to this part of the process?
4. So we run a clists to create a datasets with DDMMYY format - OK.
5. then giving a access to a Admin peoples - Why? What are these folks roles in this process. Why do they require access to this data? What is your suggestion to remove them from this process?
6. and then run FTP step to send it to server - OK. |
|
Back to top |
|
|
syedfasi Beginner
Joined: 29 Jul 2004 Posts: 10 Topics: 6 Location: India
|
Posted: Thu Jul 29, 2004 5:18 pm Post subject: |
|
|
1. We are running some job on a daily basis - I presume this means that you are using a job scheduling system, so I imagine this part is automated.
ANS: No this part is not automated. We demand in a job on a daily basis.
2. that creates to dataset - I presume you mean that this daily job writes data into a dataset. No problem here.
3. then we manually send it to server - why is it sent manually, and how is it sent? What is your suggestion for an alternative to this part of the process?
ANS: Meaning, we submit a job to send these to server.
4. So we run a clists to create a datasets with DDMMYY format - OK.
5. then giving a access to a Admin peoples - Why? What are these folks roles in this process. Why do they require access to this data? What is your suggestion to remove them from this process?
ANS: This Admin guys send it to the other agencies.. So they need to access these datasets. right..???
6. and then run FTP step to send it to server - OK. |
|
Back to top |
|
|
syedfasi Beginner
Joined: 29 Jul 2004 Posts: 10 Topics: 6 Location: India
|
Posted: Sat Aug 14, 2004 1:09 pm Post subject: |
|
|
Thanks Kolusu,
Since I am not good in JCL, please can you give me some more information. on PC File.&LDAY.&LMON.&YR2..DOC...
When I perofrmed JCL check, its giving this message
CAY6052E DSNAME "USERID.&LDAY.&LMON.&YR2.DOC" IS INVALID NEAR "&LDAY.&L"
CAY6052E DSNAME "USERID.&LDAY.&LMON.&YR2.DOC" IS INVALID NEAR "&LMON.&Y"
CAY6052E DSNAME "USERID.&LDAY.&LMON.&YR2.DOC" IS INVALID NEAR "&YR2.DOC"
I don't know how to set these variables....
Thanks in advance...
SyedFasi |
|
Back to top |
|
|
|
|