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

pasting data in a PS file


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Jul 28, 2009 5:17 pm
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: 8797
Location: Welsh Wales

PostPosted: Tue Jul 28, 2009 5:18 pm
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: 1353
Location: Israel

PostPosted: Tue Jul 28, 2009 5:47 pm
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
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Jul 28, 2009 6:51 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Jul 28, 2009 7:08 pm
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

Superior Member


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

PostPosted: Tue Jul 28, 2009 7:14 pm
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
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

Global Moderator


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

PostPosted: Tue Jul 28, 2009 10:19 pm
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

Superior Member


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

PostPosted: Wed Jul 29, 2009 11:14 am
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: 1353
Location: Israel

PostPosted: Wed Jul 29, 2009 5:06 pm
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: 1353
Location: Israel

PostPosted: Wed Jul 29, 2009 5:13 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed Jul 29, 2009 5:16 pm
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

Superior Member


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

PostPosted: Wed Jul 29, 2009 5:30 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top