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
 

 

pasting data in a PS file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Mukesh_sharma

New User


Joined: 03 Sep 2008
Posts: 4
Location: India

PostPosted: Tue Jul 28, 2009 4:57 pm    Post subject: pasting data in a PS file
Reply with quote

Hi!

i am trying to paste some numbers from a file into a ps i have created but its not taking the proper alignement it shud take ....i have checked profile and autonum as well as number is on .....its a silly thing but would be great if somebody can help out ...
something like this is happening
Code:
'''''' 437305188
437308 190       
437269 749       
437151 749       
437053 697       
441029 493       
440987 337       
440949 311       
440935 120 
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 Jul 28, 2009 5:17 pm    Post subject: Reply to: pasting data in a PS file
Reply with quote

Is the dataset's LRECL at least 80?
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: Tue Jul 28, 2009 5:18 pm    Post subject:
Reply with quote

What are you using to do this "paste"
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Tue Jul 28, 2009 5:47 pm    Post subject: Reply to: pasting data in a PS file
Reply with quote

Which version of which emulation do you use?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Jul 28, 2009 6:10 pm    Post subject:
Reply with quote

Change num on to num off. It is taking the first six digits of you data as sequence numbers.
Back to top
View user's profile Send private message
Mukesh_sharma

New User


Joined: 03 Sep 2008
Posts: 4
Location: India

PostPosted: Tue Jul 28, 2009 6:36 pm    Post subject: Reply to: pasting data in a PS file
Reply with quote

hi,

yes the dataset length is 80.
i am simply copying from a notepad and pasting it Ctrl-V.
i did tried using num off but what happened was first six digits of numbers wiped off like this
437305188
437308190
437269749
437151749
437053697
441029493
440987337
440949311
440935120
440913218
440928039

became

000002 437305188
000003 190
000004 749
000005 749
000006 697
000007 493
000008 337
000009 311
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: Tue Jul 28, 2009 6:51 pm    Post subject:
Reply with quote

I use copy from a PC file and paste into a dataset with no problems.

You are putting the cursor in the data area rather than the left margin when you paste ......... aren't you
Back to top
View user's profile Send private message
Mukesh_sharma

New User


Joined: 03 Sep 2008
Posts: 4
Location: India

PostPosted: Tue Jul 28, 2009 6:59 pm    Post subject:
Reply with quote

expat wrote:
I use copy from a PC file and paste into a dataset with no problems.

You are putting the cursor in the data area rather than the left margin when you paste ......... aren't you

I am putting it at col 1 ...do u mean to say i shud place it where seq number starts...i tried that also but it truncated the first number also...like this
000001 120
000002 188
000003 190
000004 749
000005 749
000006 697
000007 493
000008 337
icon_cry.gif
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: Tue Jul 28, 2009 7:08 pm    Post subject:
Reply with quote

Try ........................
Create a blank line
R20 to replicate it 20 times

Then paste into column 1
Code:

Command ===>                       
****** *****************************
000001 _                           
000002                             
000003                             
000004                             
000005                             
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Jul 28, 2009 7:14 pm    Post subject:
Reply with quote

Per your representation of problem at your end, what Craig has said should work for you. Show us your profile setting to have a better help...
Back to top
View user's profile Send private message
Mukesh_sharma

New User


Joined: 03 Sep 2008
Posts: 4
Location: India

PostPosted: Tue Jul 28, 2009 7:25 pm    Post subject:
Reply with quote

Code:
****** ***************************** Top of Data ******************************
=PROF> ....JCL (FIXED - 80)....RECOVERY OFF WARN....NUMBER OFF.................
=PROF> ....CAPS ON....HEX OFF....NULLS ON STD....TABS OFF......................
=PROF> ....AUTOSAVE ON....AUTONUM ON....AUTOLIST ON....STATS ON................
=PROF> ....PROFILE LOCK....IMACRO NONE....PACK OFF....NOTE ON..................
=PROF> ....HILITE OFF CURSOR FIND..............................................
****** **************************** Bottom of Data ****************************

Expat --problem is that i am not getting these sequence numbers itself my file looks like this
Code:
****** ***************************** Top of Data **************
''''''                                                                                               
''''''                                                         
''''''                                                         
****** **************************** Bottom of Data ************


Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Tue Jul 28, 2009 10:19 pm    Post subject: Reply to: pasting data in a PS file
Reply with quote

Expat's instructions were:
Quote:
Try ........................
Create a blank line
R20 to replicate it 20 times

but from your figure, it looks like you only tried to insert 20 lines. That is not the same thing
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jul 29, 2009 11:14 am    Post subject:
Reply with quote

Quote:
problem is that i am not getting these sequence numbers itself my file looks like this
That's not a propblem -- that's the way "inserted lines" will appear untill you write/paste something in front of them.

Either solution ... one from Exapt and other from Craig shuold have worked... we're still missing something or you are not doing exactly what is told to you. Try once again or ask a co-worker.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Wed Jul 29, 2009 5:06 pm    Post subject: Reply to: pasting data in a PS file
Reply with quote

In the emulation I use there are options for Paste such as "Field Wrap" and "Line Wrap".
These alter the way data is pasted on your screen.

So, again, which emulation, which version do you use?
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1219
Location: Israel

PostPosted: Wed Jul 29, 2009 5:13 pm    Post subject:
Reply with quote

Also, the file you are copying from may not have CR/LF characters,
maybe you are copying one long line instead of many small lines.

In Notepad, check the "Word Wrap" option. If it is checked, uncheck it.
Tell us if something changed.
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: Wed Jul 29, 2009 5:16 pm    Post subject:
Reply with quote

ye gods....
Are you sure you should have a TSO id unsupervised
Code:

Command ===>                       
****** *****************************
''''''                             
''''''                             
''''''                             
''''''                             

Note position of cursor - this is because I have hit the space bar a few times
Code:

Command ===>                       
****** *****************************
''''''         _                             
''''''                             
''''''                             
''''''                             

I have pressed enter
Code:

Command ===>                       
****** *****************************
000001                             
****** *****************************


Code:

Command ===>                       
****** ****************************
r20 01                             
****** ****************************
                                   


Code:

Command ===>                         
****** *****************************
000001                               
000002                               
000003                               
000004                               
000005                               
000006                               
000007                               
000008                               
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jul 29, 2009 5:30 pm    Post subject:
Reply with quote

ROTFL -- sorry but wanted to share my laugh, Expat.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unwrap the data based on delimiter X'25' bhavana yalavarthi DFSORT/ICETOOL 22 Fri Dec 09, 2016 10:25 am
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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