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
 

 

Connect direct with time and date

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Connect direct with time and date
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 11, 2010 3:49 pm    Post subject:
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    Post subject: Reply to: Connect direct with time and date
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 11, 2010 4:47 pm    Post subject:
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    Post subject: Reply to: Connect direct with time and date
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

Moderator Team Head


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

PostPosted: Thu Nov 11, 2010 7:08 pm    Post subject: Reply to: Connect direct with time and date
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    Post subject: Reply to: Connect direct with time and date
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    Post subject: Reply to: Connect direct with time and date
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: 1738
Location: Bloomington, IL

PostPosted: Tue Nov 23, 2010 7:28 pm    Post subject:
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    Post subject: Reply to: Connect direct with time and date
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: 1738
Location: Bloomington, IL

PostPosted: Tue Nov 23, 2010 8:15 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Nov 23, 2010 9:03 pm    Post subject: Reply to: Connect direct with time and date
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm


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