Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
How do we use symbolics in FTP parm card. I tried, its giving me FTP error local file not found. Please help with an alternative or corrective solution to use symbolics.
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
Thanks, Superk. If I have more than one directory name and the files then how will I use this.
For eg.,
Code:
directory name
Password
MKDIR \FFFFFFFF\2011\\02\26\TEST
CD \TAXREPORT\2011\02\26\TEST\TEST-01
PUT 'VVVVV.REPORT.YYYYYYY.TEST.&TRAM' TEST_02.txt
MKDIR \FFFFFFFF\2011\02\26TEST1
CD \TAXREPORT\2011\02\26\TEST1\TEST-01
PUT 'VVVVV.REPORT.YYYYYYY.TEST3.&TRAM' TEST_02.txt
MKDIR \FFFFFFFF\2011\02\26TEST2
CD \TAXREPORT\2011\02\26\TEST2\TEST-01
PUT 'VVVVV.REPORT.YYYYYYY.TEST1.&TRAM' TEST_02.txt
MKDIR \FFFFFFFF\2011\02\26TEST2
CD \TAXREPORT\2011\02\26\TEST2\TEST-01
PUT 'VVVVV.REPORT.YYYYYYY.TEST2.&TRAM' TEST_02.txt
DIR
QUIT
Can I give multiple INPUT's and FTPDSN's. Pls help me in this case.
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
Quote:
Can I give multiple INPUT's and FTPDSN's. Pls help me in this case.
Like in case FTPDSN1,FTPDSN2,....
I didnt try this since I dont have a development server. ONly UAT server is available. If you can confirm this, then i will use happily!
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
You can create as many different DD names, associated with as many different datasets, as you want to, obviously within the limitations of JCL.
If that won't work, then you'll have to pass the JCL symbolic through a program as a parameter (,PARM='&TRAM') to have it resolved properly into its actual value. Then, you'll have to use the output of that program within your FTP control cards.
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
Sigh.
Radhakrishnan, you can't just make things up. For the FTP program, there are the two required DD's, INPUT (or SYSIN) and OUTPUT (or SYSOUT). There are the optional DD's (SYSPRINT, NETRC and FTPDATA), and then there are the user-defined DD's.