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 issue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
tejdeep0274

New User


Joined: 28 Jan 2015
Posts: 6
Location: India

PostPosted: Thu May 07, 2015 8:09 pm    Post subject: Connect direct issue
Reply with quote

My requirement is transmit a file to destination via connect direct and append date.

Here is the description

I am sending a file from mainframes to windows( say sever1)
consider destination path to be E:\Test

DSN=E:\TEST\test1.txt is not valid (tested) hence gave DSN='E:\TEST\test1.txt' ---- working fine with single quotes

but the issue is i need to send and concatenate it with current date expected output is test1_150219

if &DSN=E:\TEST\test1_

In process DSN= &DSN || &DATE || .txt will resolve to
DSN=E:TEST\test1_20150219 but due to absense of single quote . path is not recogined and if i gave single quote

file transmit as test1_&date -- symbolic parameter is not resolved in single quote .
Back to top
View user's profile Send private message

Smita.t2

New User


Joined: 17 Apr 2012
Posts: 22
Location: Bangalore

PostPosted: Fri May 08, 2015 10:34 am    Post subject:
Reply with quote

Please try intrinsic variable in CD in process statement.

&D=%SUBDATE1

and in the DSN field.

&DSN || &D || .txt.
Back to top
View user's profile Send private message
tejdeep0274

New User


Joined: 28 Jan 2015
Posts: 6
Location: India

PostPosted: Fri May 08, 2015 11:40 am    Post subject: Reply to: Connect direct issue
Reply with quote

Hi smita,

i tried this way

&dsn = E:\TEST\test1_
&date = %sysdate1

dsn =&dsn || &date || .txt

will resolve to dsn=E:\TEST\test1_150219.txt

but the path is not in single quote so job filing as path is invalid.

tested below path and it worked fine

dsn = 'E:\TEST\test1_&date.txt' in single quote

is there a way i can resolve symbolic parameter and get a path similar to above.
Back to top
View user's profile Send private message
tejdeep0274

New User


Joined: 28 Jan 2015
Posts: 6
Location: India

PostPosted: Fri May 08, 2015 12:35 pm    Post subject: Reply to: Connect direct issue
Reply with quote

Hi ,

Below code worked

SIGNON ESF=NO -
CASE=YES
COPYDF SUBMIT PROC=XYZ -
MAXDELAY=UNLIMITED -
SNODE=ABCDEF -
&DATE=%SUBDATE3 -
&DSN1=XXX.YYYY.ZZZZZZ(0) -
&DSNS=\'\ || \D:\\CDTEST\\SOURCE\\TEST\ || \'\ -
&DSN2=&DSNS..&DATE..TXT -
&DISP1=SHR -
&DISP2=RPL
SIGNOFF


it created the file as 'TEST_.05082015'

After under score a dote is coming using the above code. please let me know a way to get rid of it.

Thanks
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1715
Location: UK

PostPosted: Fri May 08, 2015 4:47 pm    Post subject:
Reply with quote

How does the underscore get into your name? There is no underscore in the code in your last post. Maybe it is masked by the fact that you have not used the code tags to present your code.

Why not study your code and try and work out what is happening? Try tweaking it and running it until you understand how each bit works?

My guess is that you need to remove one of the dots in one of the places where your double dots are.
Back to top
View user's profile Send private message
tejdeep0274

New User


Joined: 28 Jan 2015
Posts: 6
Location: India

PostPosted: Fri May 08, 2015 5:18 pm    Post subject: Reply to: Connect direct issue
Reply with quote

Sorry my requirement is with _ so in &DSNS after TEST i placed underscore and it came


As a trail and error logic i tested the dots in all possible ways . nothing worked
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
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts DB2 CONNECT query mistah kurtz DB2 3 Fri Jul 15, 2016 6:37 pm
No new posts Help Needed with View Direct shailesh_do CA Products 2 Wed Jul 13, 2016 10:39 am
No new posts REXX Screen not working due to LINKED... sundarkudos CLIST & REXX 1 Mon May 09, 2016 1:44 pm


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