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

Connect direct with time and date


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Tofik.Momin

New User


Joined: 19 Oct 2010
Posts: 6
Location: Mumbai

PostPosted: Thu Nov 11, 2010 2:18 pm
Reply with quote

Hi,

I have requirement in connect direct to download file with date at the starting of file name.
Eg.20101021_Tofik_Momin.TXT.PGP

I have tired lots of things but they are not working, please help me.

Thanks.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Thu Nov 11, 2010 3:49 pm
Reply with quote

WOW, not working. I wonder why they are not working.
Unfortunately with the amount of useful information that you have given us, it looks as though I will have to wonder why for a long long time.

It doesn't work. A cartload of useful information.

What a stupid requirement - having a variable HLQ. Who thought this one up, the village idiot ?

This means that you will need a catalog alias for every single date that is valid for the data to be downloaded. Bet your sysprogs / storage people will love that icon_evil.gif

Also, for someone with JCL in their mainframe skills list, surely you would already have known that the notation of the dataset name is invalid.

Now, if you would like to explain the requirement in some detail, then perhaps you may get some help.
Back to top
View user's profile Send private message
Tofik.Momin

New User


Joined: 19 Oct 2010
Posts: 6
Location: Mumbai

PostPosted: Thu Nov 11, 2010 4:05 pm
Reply with quote

Hi,

Actully I want current system date before the name of my downloaded file.
I have tried below...But it not showing error

PRMFTDS1 PROCESS SNODE=BEVNTDG1 PNODE=BEV.MVS -
&DATE=%SUBDATE1 -
&TIME=%SUBTIME
SYMBOL &WHOLFILE=&DSN2 || &DATE..&TIME..&EXT
COPY01 COPY -
FROM (PNODE DSN=&DSN1 DISP=&DISP1) -
TO (SNODE DSN=&WHOLFILE -
DISP=&DISP2) -
COMPRESS
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Thu Nov 11, 2010 4:47 pm
Reply with quote

When I ask for something to be explained in detail, I do mean in detail.
Perhaps if I waste my time playing 20 questions we might get somewhere.
OK questions 1 and 2 ....................................................

Where does the source file reside. e.g. mainframe, server, PC, blah blah blah
Where will the target reside. e.g. mainframe, server, PC, blah blah blah
Back to top
View user's profile Send private message
Tofik.Momin

New User


Joined: 19 Oct 2010
Posts: 6
Location: Mumbai

PostPosted: Thu Nov 11, 2010 4:57 pm
Reply with quote

Hi,
1.Source file resides in maniframe and created on daily basis.
2.I want output to be downloaded on Server
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Nov 11, 2010 7:08 pm
Reply with quote

It might be helpful if you would post the output from the NDMCMDS DD of a DMBATCH job.
Back to top
View user's profile Send private message
Tofik.Momin

New User


Joined: 19 Oct 2010
Posts: 6
Location: Mumbai

PostPosted: Thu Nov 11, 2010 7:21 pm
Reply with quote

SHORT TEXT => SCBI050I Invalid keyword found in SUBmit command.
UIERRM1 => PRMFTDS1 PROCESS SNODE SYMBOL= L#= 3
LONG TEXT => When using the SUBmit command only the keywords 'DSN', 'PROC',
'HOLD', 'NEWNAME', 'PNODE', 'PRTY', 'RETAIN', 'SNODE', 'CLASS',
'STARTT', and symbolic parameter values (designated by a '&'
prefix) are valid.


SYSTEM ACTION: Return to invoker with RC=8.


RESPONSE: Reenter your SUBmit command using only the keywords
listed above. Check PROCess statement keywords.
Back to top
View user's profile Send private message
Tofik.Momin

New User


Joined: 19 Oct 2010
Posts: 6
Location: Mumbai

PostPosted: Tue Nov 23, 2010 6:54 pm
Reply with quote

Any one got the answer for this???
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1787
Location: Bloomington, IL

PostPosted: Tue Nov 23, 2010 7:28 pm
Reply with quote

Don't use an invalid keyword.
Back to top
View user's profile Send private message
Tofik.Momin

New User


Joined: 19 Oct 2010
Posts: 6
Location: Mumbai

PostPosted: Tue Nov 23, 2010 7:46 pm
Reply with quote

Hi Akatsukami,
it is not accepting || symbol..
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1787
Location: Bloomington, IL

PostPosted: Tue Nov 23, 2010 8:15 pm
Reply with quote

Then you'll want to read the Connect:Direct manual and find out what syntax is used to concatenate variables, won't you?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Nov 23, 2010 9:03 pm
Reply with quote

Previously, there was a post of some Connect:Direct Process code for PRMFTDS1 which, from what I can see, appears to be syntactically OK. I asked the TS to show us what that Process looks like as it's being parsed and interpreted by posting the output of the NDMCMDS DD. I haven't seen that yet. Now, there's a new post for a problem with a SUBMIT command, and the error text seems to be quite clear as to what the problem is. I don't have access to Connect:Direct anymore, so I can't offer much assistance.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Help with SORT - I need to validate d... DFSORT/ICETOOL 1
No new posts Date format correction using dfsort DFSORT/ICETOOL 3
No new posts Sorting Date Field DFSORT/ICETOOL 4
No new posts CONVERT a given date from UTC TO BST CICS 0
No new posts Pull data using date difference betwe... DB2 6
Search our Forums:

Back to Top