Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to Pass Symbolic File Name from Proc to Sysin File

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to Pass Symbolic File Name from Proc to Sysin File
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    Post subject:
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    Post subject: Re: how to Pass Symbolic File Name from Proc to Sysin File
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    Post subject:
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    Post subject: Re: how to Pass Symbolic File Name from Proc to Sysin File
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    Post subject:
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    Post subject: Re: how to Pass Symbolic File Name from Proc to Sysin File
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 1 Thu Jul 27, 2017 9:16 pm
No new posts Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 1 Thu Jul 27, 2017 1:22 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us