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

how to Pass Symbolic File Name from Proc to Sysin File


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

New User


Joined: 15 Sep 2005
Posts: 5

PostPosted: Thu Sep 15, 2005 10:05 pm
Reply with quote

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
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Sep 15, 2005 10:14 pm
Reply with quote

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
View user's profile Send private message
cpg

New User


Joined: 15 Sep 2005
Posts: 5

PostPosted: Thu Sep 15, 2005 10:18 pm
Reply with quote

Can you provide a sample of the "N" parm with my example?

Thank you.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Sep 15, 2005 10:21 pm
Reply with quote

Maybe wrong... only a question:
is that a date format?
Back to top
View user's profile Send private message
cpg

New User


Joined: 15 Sep 2005
Posts: 5

PostPosted: Thu Sep 15, 2005 10:28 pm
Reply with quote

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
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Sep 15, 2005 10:47 pm
Reply with quote

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
View user's profile Send private message
cpg

New User


Joined: 15 Sep 2005
Posts: 5

PostPosted: Thu Sep 15, 2005 11:01 pm
Reply with quote

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
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Sep 15, 2005 11:31 pm
Reply with quote

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
View user's profile Send private message
cpg

New User


Joined: 15 Sep 2005
Posts: 5

PostPosted: Thu Sep 15, 2005 11:55 pm
Reply with quote

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
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Fri Sep 16, 2005 12:10 am
Reply with quote

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
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 FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top