View previous topic :: View next topic
|
Author |
Message |
cpg
New User
Joined: 15 Sep 2005 Posts: 5
|
|
|
|
Hello,
Is there a way to do this:
//J183100 JOB (P183300,A8),'NEW PER PROP',CLASS=6,MSGCLASS=4,
// MSGLEVEL=(1,1),REGION=6144K,COND=(4,LT)
//*
//*------------------------------------------------------------------
//*
//S183100 EXEC P183100,
// FTPSYSIN='????????',
// IPADDR='FTP.DOR.STATE.FL.US (EXIT'
PROC--->
//*===========================================================
//* SENDS THE FTP FILE CREATE IN S183100E TO THE FTP ADDRESS
//*===========================================================
//S183100F EXEC PGM=FTP,REGION=6M,PARM='&IPADDR'
//STEPLIB DD DSN=METRO.LINKLIB,DISP=SHR
//OUTPUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD DSN=&SYS..SYSIN(&FTPSYSIN),DISP=SHR
SYSIN --->
100 name
200 password
300 LOCSITE FWFRIENDLY
400 DIR
500 PUT 'PPTX.SAL.BKUP.TALLA.SEQ.TAPE.G0042V00' NALP230503.TXT
600 DIR
700 CLOSE
800 QUIT
HOW CAN I
CHANGE 05
USING PARM
TO
AUTOMATE
THE YEAR |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
I think that you have some choises:
1) write "n" parm for the different use;
2) write a Rexx to do what you need;
3) using a tool that do changes(I'm thinking to DfSort).
I hope in this suggest |
|
Back to top |
|
|
cpg
New User
Joined: 15 Sep 2005 Posts: 5
|
|
|
|
Can you provide a sample of the "N" parm with my example?
Thank you. |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
Maybe wrong... only a question:
is that a date format? |
|
Back to top |
|
|
cpg
New User
Joined: 15 Sep 2005 Posts: 5
|
|
|
|
It is only a year change: 05 for 2005, 06 for 2006
The State Of Florida requires it as part of the Naming Convention.
I really don't need to automate it. We just would like to use a Symbolic or a Parm to update it directly from the Job Card to the Proc to the Sysin.
Thanks again. |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
Well but in this case I think that only override the string you will get the desired result... or not?
Code: |
//J183100 JOB (P183300,A8),'NEW PER PROP',CLASS=6,MSGCLASS=4,
// MSGLEVEL=(1,1),REGION=6144K,COND=(4,LT)
//*
//*------------------------------------------------------------------
//*
//S183100 EXEC P183100,
// FTPSYSIN='????????',
// IPADDR='FTP.DOR.STATE.FL.US (EXIT'
//S183100F.SYSIN DD *
100 name
200 password
300 LOCSITE FWFRIENDLY
400 DIR
500 PUT 'PPTX.SAL.BKUP.TALLA.SEQ.TAPE.G0042V00' NALP230503.TXT
600 DIR
700 CLOSE
800 QUIT |
If you want, you can also create a member ?????05 that has inside your parameter....
Tell me if is this that you need... |
|
Back to top |
|
|
cpg
New User
Joined: 15 Sep 2005 Posts: 5
|
|
|
|
Actually,
I want to use two different members:
//* YEARLY STATE ROLL AT PRELIMINARY AND FINAL ROLL TIME
//*
//* FTPSYSIN = 'I183100P' <-- PRELIMINARY
//* 'I183100F' <-- FINAL
//* IPADDR = 'FTP.DOR.STATE.FL.US (EXIT' <-- DEPT OF REVENUE FTP
I would like to use a 3rd Symbolic FTPYEAR which I would like to pass from the JOB Card to the Proc to the SYSIN.
300 LOCSITE FWFRIENDLY
400 DIR
500 PUT 'PPTX.SAL.BKUP.TALLA.SEQ.TAPE.G0042V00' &&FTPYEAR.TXT
600 DIR
700 CLOSE
800 QUIT
I am trying to avoid having to manually change the year by passing it like a Symbolic or Parm to the Sysin DataSetName in the PUT statement of the FTP.
Thanks again. |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
Attached to this there's a sample to solve your question.
You must divide the source of program from the jcl
and try it.
I hope in this help and I'm here for any question. |
|
Back to top |
|
|
cpg
New User
Joined: 15 Sep 2005 Posts: 5
|
|
|
|
I do not understand what is highlighted in RED:
//J183100 JOB (P183300,A8),'NEW PER PROP',CLASS=6,MSGCLASS=4,
// MSGLEVEL=(1,1),REGION=6144K,COND=(4,LT)
//*
//*------------------------------------------------------------------
//STEP010X EXEC PGM=IKJEFT01,
// PARM='LOOKCHAN G0042V00 NALP230503'
//*---------------------------------------------------- "STEPLIB"
//SYSEXEC DD DISP=SHR,DSN=yourlibrary
//*---------------------------------------------------- REXX DD
//OUTDD DD DISP=(,PASS),LRECL=80,RECFM=FB,
// SPACE=(CYL,(1,1),RLSE),
// DSN=&&REXXOUT
//INDD DD *
100 NAME
200 PASSWORD
300 LOCSITE FWFRIENDLY
400 DIR
500 PUT 'PPTX.SAL.BKUP.TALLA.SEQ.TAPE.&VAR1' &VAR2.TXT
600 DIR
700 CLOSE //SYSTSPRT DD SYSOUT=B
//SYSTSIN DD DUMMY
//*------------------------------------------------------------------
//S183100 EXEC P183100,
// FTPSYSIN='????????',
// IPADDR='FTP.DOR.STATE.FL.US (EXIT'
//S183100F.SYSIN DD DISP=(OLD,DELETE),DSN=REXXOUT
Also, how can you FTP before it is called? |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
Ok.... excuse me but I wrote this in few minutes.
IKJEFT01 is the program that run the source Rexx that in my tests is called LOOKCHAN and that is in the library "yourlibrary"
Near LOOKCHAN there are G0042V00 NALP230503 that are two parm that I passed to pgm to make the substitution and that you can see as temporary value &PAR1 &PAR2 in your sample.
Regarding DSN=REXXOUT I omitted the twice & :-P
Now I'm leaving to dinner so I hope that for further question the other members can help you but if not I will be here tomorrow.
I hope in this quickly explanation. |
|
Back to top |
|
|
|