|
|
| Author |
Message |
radhakrishnan82
Senior Member
Joined: 31 Mar 2005 Posts: 386 Location: chennai, India
|
|
|
|
FTP parameters:
my control card has
*ip*
*user*
*pw*
put 'AAA.BBBB' CCC.txt (the file name is to be suffixed with datetimestamp and it should be changed for each ran of the job.The name should look like CCC200508121250 and the next day it should be CCC20050813121206 and so on....)
quit
Give me your suggestions whether i could change it on JCL side.no problem if change should be in the program(pls provide the code). |
|
| Back to top |
|
 |
References
|
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3380 Location: Charlotte,NC USA
|
|
|
|
This step can build the "put" control card:
| Code: |
//*
//STEPXXXX EXEC PGM=SORT
//SORTIN DD *
DUMMY RECORD
/*
//SORTOUT DD DSN=&&T1,DISP=(,PASS)
//SYSOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC FIELDS=(DATE1,TIME1)
OUTFIL OUTREC=(1:C'put ''AAA.BBBB''',X,
C'ccc',1,12,C'.txt',
80:X)
/*
//
|
|
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3380 Location: Charlotte,NC USA
|
|
|
|
radhakrishnan82, as a follow-up to your original post, you ask for suggestions, and even possible code samples. Yet, you have provided nowhere near enough background information (including what language the code should be in) for anyone to provide any reasonable suggestions.
Yes, I think that the program that is creating this data should also be supplying the value for the filename. There should be a process in place to easily re-transmit any file to it's original target filename, thereby overlaying the original file when needed. I think, for auditing and problem-tracking purposes, that there should be a one-to-one correlation between the dataset on the mainframe (which is presumably a GDG) and the target filename. |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3380 Location: Charlotte,NC USA
|
|
|
|
Another option:
| Code: |
//STEPXXXX EXEC PGM=EZACFSM1
//SYSPRINT DD SYSOUT=*
//SYSOUT DD DSN=&T1,DISP=(,PASS)
//SYSIN DD *
put 'AAA.BBBB' ccc&LYR4&LMON&LDAY&LHR&LMIN..txt
/*
//*
|
|
|
| Back to top |
|
 |
prasanth_thavva
Active User
Joined: 28 Jul 2005 Posts: 103 Location: Bangalore
|
|
|
|
regarding this issue
ccc&LYR4&LMON&LDAY&LHR&LMIN..txt
How it will work can any body clear
this above thing is given in sysin dd *
EZACFSM1  |
|
| Back to top |
|
 |
radhakrishnan82
Senior Member
Joined: 31 Mar 2005 Posts: 386 Location: chennai, India
|
|
|
|
superk,
Sorry to feel that i ran short of information.
My requirement is a new one and nowhere its been used in our shop till.
The code can either be in JCL or in COBOL.I thought of writing a cobol program to implement this logic. But if it can be done thru JCL,its well and good.
Thanks for the above solutions.I will try it at my end. |
|
| Back to top |
|
 |
radhakrishnan82
Senior Member
Joined: 31 Mar 2005 Posts: 386 Location: chennai, India
|
|
|
|
| When i ran the above,it gave FTP Return Code = 99000 |
|
| Back to top |
|
 |
radhakrishnan82
Senior Member
Joined: 31 Mar 2005 Posts: 386 Location: chennai, India
|
|
|
|
Now its working fine.But tell me is it possible to append upto milliseconds to the FTP'd dataset instead of stopping upto SECONDS.
Thanks for all your replies. |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3380 Location: Charlotte,NC USA
|
|
|
|
| Where would you find a time value down to that level of precision? |
|
| Back to top |
|
 |
radhakrishnan82
Senior Member
Joined: 31 Mar 2005 Posts: 386 Location: chennai, India
|
|
|
|
I think of the same.But my requirement is to add upto that precision.
Don't we have a symbol to do upto that precision level? |
|
| Back to top |
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3380 Location: Charlotte,NC USA
|
|
| Back to top |
|
 |
radhakrishnan82
Senior Member
Joined: 31 Mar 2005 Posts: 386 Location: chennai, India
|
|
|
|
I had already searched in Dynamic System Symbols.But the symbol for millisecond level is not present in it.
I concatenated some of dynamic system symbols with &LSEC to acheive that precision level.Though it doesn't give the exact millisecond value,the point is to differentiate at the next level to seconds.Hence I concatenated the symbols to acheive it.
Thanks,superk. |
|
| Back to top |
|
 |
|
|